Bug 1316114 - reset sjs file at the end of the test case. r=mayhemer
MozReview-Commit-ID: FCZxC0dMcRW
--- 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);