Bug 1480900 follow-up: Fix lint failure

Landed on a CLOSED TREE

--HG--
extra : source : 5a55e5b741076790c0fead2d758fa5dc5d76b839
This commit is contained in:
Ehsan Akhgari 2018-08-31 16:16:20 -04:00
Родитель d232d2e938
Коммит 820ef13193
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -81,6 +81,8 @@ add_task(async function test_autofillCheckboxes() {
"Checkbox should be unchecked when Autofill Addresses is disabled");
is(content.document.querySelector(selectors.creditCardAutofillCheckbox).checked, false,
"Checkbox should be unchecked when Autofill Credit Cards is disabled");
content.document.querySelector(selectors.addressAutofillCheckbox)
.scrollIntoView({block: "center", behavior: "instant"});
});
info("test toggling the checkboxes");
@ -88,6 +90,10 @@ add_task(async function test_autofillCheckboxes() {
is(Services.prefs.getBoolPref(ENABLED_AUTOFILL_ADDRESSES_PREF), true,
"Check address autofill is now enabled");
await ContentTask.spawn(browser, SELECTORS, (selectors) => {
content.document.querySelector(selectors.creditCardAutofillCheckbox)
.scrollIntoView({block: "center", behavior: "instant"});
});
await BrowserTestUtils.synthesizeMouseAtCenter(SELECTORS.creditCardAutofillCheckbox, {}, browser);
is(Services.prefs.getBoolPref(ENABLED_AUTOFILL_CREDITCARDS_PREF), true,
"Check credit card autofill is now enabled");