Bug 1316114 - reset sjs file at the end of the test case. r=jmaher

MozReview-Commit-ID: FKm93zKuFe1

--HG--
extra : rebase_source : d6ae819e3ba5df555dfedb205d6d6e37538300f0
This commit is contained in:
Joel Maher 2016-11-09 16:18:08 -05:00
parent 37958a0e3b
commit e897b35591

View File

@ -257,6 +257,20 @@ var tests = [
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");
},
loading: function (xhr) {
},
done: function (xhr) {
},
},
]
@ -280,7 +294,6 @@ function drive(test)
}
</script>
</pre>
</body>
</html>