Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: testing/xpcshell/test/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
let someVar = 0;
add_setup(() => (someVar = 1));
add_setup(() => (someVar = 2));
add_task(async function test_setup_ordering() {
Assert.equal(someVar, 2, "Setups should have run in order.");
});