Fix bug 847314 (Intermittent test_listsources-02.js, test_sources_backwards_compat-02.js); r=me

This commit is contained in:
Panos Astithas 2013-03-04 13:36:23 +02:00
parent 4e86b023d3
commit 7d203c3000
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,9 @@ 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 () {
attachTestGlobalClientAndResume(gClient, "test-stack", function (aResponse, aThreadClient) {
gThreadClient = aThreadClient;

View File

@ -25,6 +25,9 @@ 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,