Bug 906100 - Intermittent failures in tests that list sources, but don't call gc() after adding test globals; r=jimb

This commit is contained in:
Nick Fitzgerald 2013-08-20 18:23:05 -07:00
parent be09e0b8f9
commit e55a604cd3
3 changed files with 1 additions and 7 deletions

View File

@ -103,7 +103,7 @@ function testGlobal(aName) {
.createInstance(Ci.nsIPrincipal);
let sandbox = Cu.Sandbox(systemPrincipal);
Cu.evalInSandbox("this.__name = '" + aName + "'", sandbox);
sandbox.__name = aName;
return sandbox;
}

View File

@ -24,9 +24,6 @@ function run_test()
return request.call(this, aRequest, aOnResponse);
};
}(gClient.request));
// Make sure that the eval script from addTestGlobal() won't interfere with
// the test.
gc();
gClient.connect(function () {
attachTestTabAndResume(gClient, "test-stack", function (aResponse, aTabClient, aThreadClient) {
gThreadClient = aThreadClient;

View File

@ -25,9 +25,6 @@ function run_test()
return request.call(this, aRequest, aOnResponse);
};
}(gClient.request));
// Make sure that the eval script from addTestGlobal() won't interfere with
// the test.
gc();
gClient.connect(function() {
attachTestTabAndResume(gClient, "test-sources-compat", function (aResponse,
aTabClient,