summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/head.js
blob: cd9565f7439c56d5ecfc98c4cbadad989e708af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var headVar = "I'm a var in head file";

function headMethod() {
  return true;
}

ok(true, "I'm a test in head file");

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