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

--HG--
extra : rebase_source : 717ea4a22a3cd7f83887bce58a1b34112453bba6
This commit is contained in:
Olli Pettay 2015-07-01 15:39:56 +03:00
parent 1ee915633d
commit 82cb8da60f

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);