Bug 1174951, try to fix the intermittent failure in test_XHRDocURI.html, r=bz

This commit is contained in:
Olli Pettay 2015-07-01 15:39:56 +03:00
parent d3cb3d27b3
commit 4794222292

View File

@ -499,7 +499,14 @@ function runTest() {
var chromeDoc = SpecialPowers.wrap(document);
ok(chromeDoc.documentURI.indexOf("pushStateTest") > -1);
SimpleTest.executeSoon(function() { gen.next(); });
yield undefined;
history.back();
SimpleTest.executeSoon(function() { gen.next(); });
yield undefined;
SimpleTest.finish();
SpecialPowers.removePermission("systemXHR", document);