diff options
Diffstat (limited to 'intl/locale/tests')
-rw-r--r-- | intl/locale/tests/LangPackMatcherTestUtils.sys.mjs | 4 | ||||
-rw-r--r-- | intl/locale/tests/unit/data/intl_on_workers_worker.js | 2 | ||||
-rw-r--r-- | intl/locale/tests/unit/test_localeService.js | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/intl/locale/tests/LangPackMatcherTestUtils.sys.mjs b/intl/locale/tests/LangPackMatcherTestUtils.sys.mjs index 4b18f1be13..e746d558bd 100644 --- a/intl/locale/tests/LangPackMatcherTestUtils.sys.mjs +++ b/intl/locale/tests/LangPackMatcherTestUtils.sys.mjs @@ -5,7 +5,7 @@ import { LangPackMatcher } from "resource://gre/modules/LangPackMatcher.sys.mjs"; /** - * LangPackMatcher.jsm calls out to to the addons store, which involves network requests. + * LangPackMatcher.sys.mjs calls out to to the addons store, which involves network requests. * Other tests create a fake addons server, and install mock XPIs. At the time of this * writing that infrastructure is not available for mochitests. * @@ -26,7 +26,7 @@ import { LangPackMatcher } from "resource://gre/modules/LangPackMatcher.sys.mjs" export function getAddonAndLocalAPIsMocker(testScope, sandbox) { const { info } = testScope; return function mockAddonAndLocaleAPIs({ systemLocale, appLocale }) { - info("Mocking LangPackMatcher.jsm APIs"); + info("Mocking LangPackMatcher.sys.mjs APIs"); let resolveLangPacks; const langPackPromise = new Promise(resolve => { diff --git a/intl/locale/tests/unit/data/intl_on_workers_worker.js b/intl/locale/tests/unit/data/intl_on_workers_worker.js index e6f01e71a8..9b47fdf181 100644 --- a/intl/locale/tests/unit/data/intl_on_workers_worker.js +++ b/intl/locale/tests/unit/data/intl_on_workers_worker.js @@ -1,6 +1,6 @@ /* eslint-env worker */ -self.onmessage = function (data) { +self.onmessage = function () { let myLocale = Intl.NumberFormat().resolvedOptions().locale; self.postMessage(myLocale); }; diff --git a/intl/locale/tests/unit/test_localeService.js b/intl/locale/tests/unit/test_localeService.js index ae2d949e80..7d55b7fc25 100644 --- a/intl/locale/tests/unit/test_localeService.js +++ b/intl/locale/tests/unit/test_localeService.js @@ -69,7 +69,7 @@ add_test(function test_requestedLocales_matchOS() { Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR"); const observer = { - observe(aSubject, aTopic, aData) { + observe(aSubject, aTopic) { switch (aTopic) { case REQ_LOC_CHANGE_EVENT: const reqLocs = localeService.requestedLocales; @@ -97,7 +97,7 @@ add_test(function test_requestedLocales_onChange() { Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR"); const observer = { - observe(aSubject, aTopic, aData) { + observe(aSubject, aTopic) { switch (aTopic) { case REQ_LOC_CHANGE_EVENT: const reqLocs = localeService.requestedLocales; |