diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /intl/locale | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'intl/locale')
-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; |