Bug 648485 - Third attempt to fix intermittent failure in content/base/test/test_bug482935.html. r=ehsan a=NPOTB
authorBjarne <bjarne@runitsoft.com>
Wed, 20 Apr 2011 21:42:09 +0200
changeset 68114 b0096e6a2bd43193d291752044a5d60605991a86
parent 68113 d350446b6794ee814f9a049582279add457377c5
child 68115 036380520767a9c7da4c816a0259cb2dc4e47915
push idunknown
push userunknown
push dateunknown
reviewersehsan, NPOTB
bugs648485, 482935
milestone5.0a2
Bug 648485 - Third attempt to fix intermittent failure in content/base/test/test_bug482935.html. r=ehsan a=NPOTB
content/base/test/test_bug482935.html
--- a/content/base/test/test_bug482935.html
+++ b/content/base/test/test_bug482935.html
@@ -37,17 +37,17 @@ function testCancelInPhase4() {
           // Second request - should be found in cache
           var xhr2 = new XMLHttpRequest();
 
           xhr2.addEventListener("load", function() {
             is(xhr2.responseText, "0", "Received fresh value for second request");
             testCancelBeforePhase4();
           }, false);
 
-          xhr2.open("GET", url, false); // note : synch-request
+          xhr2.open("GET", url);
           xhr2.setRequestHeader("X-Request", "1", false);
 
           try { xhr2.send(); }
           catch(e) {
             is(xhr2.status, "200", "Exception!");
           }
         }, 0);
       }, false);
@@ -82,17 +82,17 @@ function testCancelBeforePhase4() {
           // Second request - should be found in cache
           var xhr2 = new XMLHttpRequest();
 
           xhr2.addEventListener("load", function() {
             is(xhr2.responseText, "1", "Received cached value for second request");
             SimpleTest.finish();
           }, false);
 
-          xhr2.open("GET", url, false); // note : synch-request
+          xhr2.open("GET", url);
           xhr2.setRequestHeader("X-Request", "1", false);
 
           try { xhr2.send(); }
           catch(e) {
             is(xhr2.status, "200", "Exception!");
           }
         }, 0);
       }, false);