зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3af274a2dd
Коммит
38225abec8
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче