mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 648485 - Trying to fix an intermittent failure in content/base/test/test_bug482935.html. r=ehsan
This commit is contained in:
parent
fad9f3203a
commit
a22a2fdfeb
@ -30,7 +30,7 @@ function testCancelInPhase4() {
|
||||
xhr.addEventListener("readystatechange", function(e) {
|
||||
if (xhr.readyState >= 4) {
|
||||
xhr.abort();
|
||||
setTimeout(function() {
|
||||
SimpleTest.executeSoon(function() {
|
||||
// This request was cancelled, so the responseText should be empty string
|
||||
is(xhr.responseText, "", "Expected empty response to cancelled request");
|
||||
|
||||
@ -47,7 +47,7 @@ function testCancelInPhase4() {
|
||||
is(xhr2.responseText, "0", "Received fresh value for second request");
|
||||
|
||||
testCancelBeforePhase4();
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
}, false);
|
||||
|
||||
@ -70,7 +70,7 @@ function testCancelBeforePhase4() {
|
||||
xhr.addEventListener("readystatechange", function(e) {
|
||||
if (xhr.readyState == 3) {
|
||||
xhr.abort();
|
||||
setTimeout(function() {
|
||||
SimpleTest.executeSoon(function() {
|
||||
// This request was cancelled, so the responseText should be empty string
|
||||
is(xhr.responseText, "", "Expected empty response to cancelled request");
|
||||
|
||||
@ -87,7 +87,7 @@ function testCancelBeforePhase4() {
|
||||
is(xhr2.responseText, "1", "Received cached value for second request");
|
||||
|
||||
SimpleTest.finish();
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
}, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user