summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/browser_head.js
blob: 3e3893f2d49bce092ca4d112ec97185c46253200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var testVar;

registerCleanupFunction(function () {
  ok(true, "I'm a cleanup function in test file");
  is(
    this.testVar,
    "I'm a var in test file",
    "Test cleanup function scope is correct"
  );
});

function test() {
  is(headVar, "I'm a var in head file", "Head variables are set");
  ok(headMethod(), "Head methods are imported");
  testVar = "I'm a var in test file";
}