diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/migration/tests/marionette | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/migration/tests/marionette')
-rw-r--r-- | browser/components/migration/tests/marionette/test_refresh_firefox.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/browser/components/migration/tests/marionette/test_refresh_firefox.py b/browser/components/migration/tests/marionette/test_refresh_firefox.py index ea5d6bce99..2ffcd4f099 100644 --- a/browser/components/migration/tests/marionette/test_refresh_firefox.py +++ b/browser/components/migration/tests/marionette/test_refresh_firefox.py @@ -224,8 +224,8 @@ class TestFirefoxRefresh(MarionetteTestCase): self.runAsyncCode( """ let resolve = arguments[arguments.length - 1]; - let { FxAccountsStorageManager } = ChromeUtils.import( - "resource://gre/modules/FxAccountsStorage.jsm" + let { FxAccountsStorageManager } = ChromeUtils.importESModule( + "resource://gre/modules/FxAccountsStorage.sys.mjs" ); let storage = new FxAccountsStorageManager(); let data = {email: "test@test.com", uid: "uid", keyFetchToken: "top-secret"}; @@ -448,8 +448,8 @@ class TestFirefoxRefresh(MarionetteTestCase): def checkFxA(self): result = self.runAsyncCode( """ - let { FxAccountsStorageManager } = ChromeUtils.import( - "resource://gre/modules/FxAccountsStorage.jsm" + let { FxAccountsStorageManager } = ChromeUtils.importESModule( + "resource://gre/modules/FxAccountsStorage.sys.mjs" ); let resolve = arguments[arguments.length - 1]; let storage = new FxAccountsStorageManager(); @@ -528,16 +528,16 @@ class TestFirefoxRefresh(MarionetteTestCase): global.Preferences = ChromeUtils.importESModule( "resource://gre/modules/Preferences.sys.mjs" ).Preferences; - global.FormHistory = ChromeUtils.import( - "resource://gre/modules/FormHistory.jsm" + global.FormHistory = ChromeUtils.importESModule( + "resource://gre/modules/FormHistory.sys.mjs" ).FormHistory; """ # NOQA: E501 ) self._formAutofillAvailable = self.runCode( """ try { - global.formAutofillStorage = ChromeUtils.import( - "resource://formautofill/FormAutofillStorage.jsm" + global.formAutofillStorage = ChromeUtils.importESModule( + "resource://formautofill/FormAutofillStorage.sys.mjs" ).formAutofillStorage; } catch(e) { return false; |