зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d8dc72ab2406 (bug 1359653)
This commit is contained in:
Родитель
0584d6d6d4
Коммит
654262208b
|
@ -47,9 +47,8 @@ const { addDebuggerToGlobal } = Cu.import("resource://gre/modules/jsdebugger.jsm
|
|||
const systemPrincipal = Cc["@mozilla.org/systemprincipal;1"]
|
||||
.createInstance(Ci.nsIPrincipal);
|
||||
|
||||
var { loadSubScript, loadSubScriptWithOptions } =
|
||||
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader);
|
||||
var { loadSubScript } = Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader);
|
||||
|
||||
/**
|
||||
* Initializes any test that needs to work with add-ons.
|
||||
|
|
|
@ -7,7 +7,7 @@ function run_test() {
|
|||
do_test_pending();
|
||||
|
||||
let global = testGlobal("test");
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
Cu.forceGC(); Cu.forceGC(); Cu.forceGC();
|
||||
|
||||
DebuggerServer.registerModule("xpcshell-test/testactors");
|
||||
|
@ -33,7 +33,7 @@ function run_test() {
|
|||
|
||||
packet = yield executeOnNextTickAndWaitForPause(function () {
|
||||
reload(tabClient).then(function () {
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
});
|
||||
}, client);
|
||||
do_check_eq(packet.type, "paused");
|
||||
|
|
|
@ -7,7 +7,7 @@ function run_test() {
|
|||
do_test_pending();
|
||||
|
||||
let global = createTestGlobal("test");
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
Cu.forceGC(); Cu.forceGC(); Cu.forceGC();
|
||||
|
||||
DebuggerServer.registerModule("xpcshell-test/testactors");
|
||||
|
@ -33,7 +33,7 @@ function run_test() {
|
|||
|
||||
packet = yield executeOnNextTickAndWaitForPause(function () {
|
||||
reload(tabClient).then(function () {
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
});
|
||||
}, client);
|
||||
do_check_eq(packet.type, "paused");
|
||||
|
|
|
@ -7,7 +7,7 @@ function run_test() {
|
|||
do_test_pending();
|
||||
|
||||
let global = createTestGlobal("test");
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
Cu.forceGC(); Cu.forceGC(); Cu.forceGC();
|
||||
|
||||
DebuggerServer.registerModule("xpcshell-test/testactors");
|
||||
|
@ -34,7 +34,7 @@ function run_test() {
|
|||
|
||||
packet = yield executeOnNextTickAndWaitForPause(function () {
|
||||
reload(tabClient).then(function () {
|
||||
loadSubScriptWithOptions(SOURCE_URL, {target: global, ignoreCache: true});
|
||||
loadSubScript(SOURCE_URL, global);
|
||||
});
|
||||
}, client);
|
||||
do_check_eq(packet.type, "paused");
|
||||
|
|
Загрузка…
Ссылка в новой задаче