Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 let testVar;
3 registerCleanupFunction(function() {
4 ok(true, "I'm a cleanup function in test file");
5 is(this.testVar, "I'm a var in test file", "Test cleanup function scope is correct");
6 });
8 function test() {
9 is(headVar, "I'm a var in head file", "Head variables are set");
10 ok(headMethod(), "Head methods are imported");
11 testVar = "I'm a var in test file";
12 }