1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testing/mochitest/tests/browser/browser_head.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +let testVar; 1.5 + 1.6 +registerCleanupFunction(function() { 1.7 + ok(true, "I'm a cleanup function in test file"); 1.8 + is(this.testVar, "I'm a var in test file", "Test cleanup function scope is correct"); 1.9 +}); 1.10 + 1.11 +function test() { 1.12 + is(headVar, "I'm a var in head file", "Head variables are set"); 1.13 + ok(headMethod(), "Head methods are imported"); 1.14 + testVar = "I'm a var in test file"; 1.15 +}