mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1768074 - Stop using the second argument to ChromeUtils.import in startup marionette tests. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D145658
This commit is contained in:
parent
bc95649471
commit
23234fc18f
@ -133,7 +133,8 @@ class TestFissionAutostart(MarionetteTestCase):
|
||||
// We're running in a function, in a sandbox, that inherits from an
|
||||
// X-ray wrapped window. Anything we want to be globally available
|
||||
// needs to be defined on that window.
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm", window);
|
||||
let { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
window.Services = Services;
|
||||
window.env = Cc["@mozilla.org/process/environment;1"]
|
||||
.getService(Ci.nsIEnvironment);
|
||||
"""
|
||||
|
@ -141,7 +141,8 @@ class TestWin32kAutostart(MarionetteTestCase):
|
||||
// We're running in a function, in a sandbox, that inherits from an
|
||||
// X-ray wrapped window. Anything we want to be globally available
|
||||
// needs to be defined on that window.
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm", window);
|
||||
let { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
window.Services = Services;
|
||||
window.env = Cc["@mozilla.org/process/environment;1"]
|
||||
.getService(Ci.nsIEnvironment);
|
||||
"""
|
||||
|
@ -141,7 +141,8 @@ class TestWin32kAutostart(MarionetteTestCase):
|
||||
// We're running in a function, in a sandbox, that inherits from an
|
||||
// X-ray wrapped window. Anything we want to be globally available
|
||||
// needs to be defined on that window.
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm", window);
|
||||
let { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
window.Services = Services;
|
||||
window.env = Cc["@mozilla.org/process/environment;1"]
|
||||
.getService(Ci.nsIEnvironment);
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user