mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
9d76e33dd4
--HG-- extra : rebase_source : a530c1502e2a5dcf6a423e333fa85cd23234aa74
21 lines
433 B
JavaScript
21 lines
433 B
JavaScript
// Tests for the test functions in head.js
|
|
|
|
function test() {
|
|
waitForExplicitFinish();
|
|
testWaitForAndContinue();
|
|
}
|
|
|
|
function testWaitForAndContinue() {
|
|
waitForAndContinue(function() {
|
|
ok(true, "continues on success")
|
|
testWaitForAndContinue2();
|
|
}, function() true);
|
|
}
|
|
|
|
function testWaitForAndContinue2() {
|
|
waitForAndContinue(function() {
|
|
ok(true, "continues on failure");
|
|
finish();
|
|
}, function() false);
|
|
}
|