Bug 1316114 - reset sjs file at the end of the test case. r=mayhemer draft
authorJoel Maher <jmaher@mozilla.com>
Wed, 09 Nov 2016 15:54:29 -0500
changeset 436851 5db779d1ec99e9608c807c926e6d41a4636cda9e
parent 436850 dc764a90dafb7554899cdd11dee7cb7b5da316ee
child 536450 3b39a80afef469d4142ddfa79c6c2b06e496a13f
push id35209
push userbmo:jmaher@mozilla.com
push dateWed, 09 Nov 2016 20:55:21 +0000
reviewersmayhemer
bugs1316114
milestone52.0a1
Bug 1316114 - reset sjs file at the end of the test case. r=mayhemer MozReview-Commit-ID: FCZxC0dMcRW
dom/base/test/test_bug475156.html
--- a/dom/base/test/test_bug475156.html
+++ b/dom/base/test/test_bug475156.html
@@ -253,27 +253,28 @@ var tests = [
     done: function(xhr)
     {
       is(xhr.status, 200, "We got cached version");
       is(xhr.getResponseHeader("Etag"), "a3", "We got correct ETag");
       is(xhr.responseText, "a3", "We got the expected file body");
     },
   },
 
+  // Load one last time to reset the state variable in the .sjs file
   {
-      init: function (xhr) {
-          xhr.open("GET", path + "bug475156.sjs");
-          xhr.setRequestHeader("If-Match", "a1");
-      },
+    init: function (xhr) {
+      xhr.open("GET", path + "bug475156.sjs");
+      xhr.setRequestHeader("If-Match", "a1");
+    },
 
-      loading: function (xhr) {
-      },
+    loading: function (xhr) {
+    },
 
-      done: function (xhr) {
-      },
+    done: function (xhr) {
+    },
   },
 ]
 
 
 function drive(test)
 {  
   var xhr = new XMLHttpRequest();
   test.init(xhr);