fune/testing/mochitest/tests/browser/browser_head.js
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00

16 lines
385 B
JavaScript

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";
}