Bug 1325778 - Check that the contents of the autocomplete popup match the tests expectations. r=MattN

Differential Revision: https://phabricator.services.mozilla.com/D24958

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jared Wein 2019-04-02 18:24:25 +00:00
Родитель 3af274a2dd
Коммит 38225abec8
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -879,10 +879,12 @@ add_task(async function test_form12_formless() {
checkACForm("", "");
let shownPromise = promiseACShown();
synthesizeKey("KEY_ArrowDown"); // open
await shownPromise;
let results = await shownPromise;
let expectedMenuItems = ["This connection is not secure. Logins entered here could be compromised. Learn More",
"testuser10"];
checkAutoCompleteResults(results, expectedMenuItems, "mochi.test", "Check all menuitems are displayed correctly.");
synthesizeKey("KEY_ArrowDown"); // skip insecure warning
// Trigger autocomplete
synthesizeKey("KEY_ArrowDown");
checkACForm("", ""); // value shouldn't update
let processedPromise = promiseFormsProcessed();