зеркало из https://github.com/mozilla/normandy.git
Bug 1412778 - Enable ESLint rule no-cpows-in-tests across the whole tree. r=florian
This commit is contained in:
Родитель
cb3ebd69ea
Коммит
953022f5c3
|
@ -1,5 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
/* eslint-disable mozilla/no-cpows-in-tests */
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm", this);
|
||||
|
||||
const OPT_OUT_PREF = "app.shield.optoutstudies.enabled";
|
||||
|
|
|
@ -14,6 +14,7 @@ function withAboutStudies(testFunc) {
|
|||
decorate_task(
|
||||
withAboutStudies,
|
||||
async function testAboutStudiesWorks(browser) {
|
||||
// eslint-disable-next-line mozilla/no-cpows-in-tests
|
||||
ok(browser.contentDocument.getElementById("app"), "App element was found");
|
||||
}
|
||||
);
|
||||
|
@ -50,11 +51,13 @@ decorate_task(
|
|||
});
|
||||
});
|
||||
|
||||
/* eslint-disable mozilla/no-cpows-in-tests */
|
||||
if (gBrowser.contentDocument.readyState !== "complete") {
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.contentWindow, "load");
|
||||
}
|
||||
|
||||
const location = gBrowser.contentWindow.location.href;
|
||||
/* eslint-enable mozilla/no-cpows-in-tests */
|
||||
is(
|
||||
location,
|
||||
"about:preferences#privacy",
|
||||
|
|
Загрузка…
Ссылка в новой задаче