testing/mochitest/tests/browser/head.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:d6810c7bfd5b
1 let headVar = "I'm a var in head file";
2
3 function headMethod() {
4 return true;
5 };
6
7 ok(true, "I'm a test in head file");
8
9 registerCleanupFunction(function() {
10 ok(true, "I'm a cleanup function in head file");
11 is(this.headVar, "I'm a var in head file", "Head cleanup function scope is correct");
12 });

mercurial