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 68106 b0096e6a2bd43193d291752044a5d60605991a86
parent 68105 d350446b6794ee814f9a049582279add457377c5
child 68107 036380520767a9c7da4c816a0259cb2dc4e47915
push id70
push userdgottwald@mozilla.com
push dateFri, 13 May 2011 13:09:22 +0000
treeherdermozilla-aurora@b0096e6a2bd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);