Bug 1096724 - Fix intermittent test_base-uri.html failures. r=ryanvm

This commit is contained in:
Christoph Kerschbaumer 2015-07-29 14:16:37 -07:00
parent 5ea2a56dfc
commit 28f23b1235

View File

@ -54,11 +54,16 @@ examiner.prototype = {
}
window.BaseURIExaminer = new examiner();
function finishTest() {
window.BaseURIExaminer.remove();
SimpleTest.finish();
}
function loadNextTest() {
counter++;
if (counter == testPolicies.length) {
window.BaseURIExaminer.remove();
SimpleTest.finish();
finishTest();
return;
}
var src = "http://example.com/tests/dom/security/test/csp/file_testserver.sjs";
// append the file that should be served