diff options
Diffstat (limited to 'testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js')
-rw-r--r-- | testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js b/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js new file mode 100644 index 000000000..2175eea27 --- /dev/null +++ b/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js @@ -0,0 +1,12 @@ +function test() { + function message() { + info("This should delay timeout"); + } + function end() { + ok(true, "Should have not timed out, but notified long running test"); + finish(); + } + waitForExplicitFinish(); + setTimeout(message, 20000); + setTimeout(end, 40000); +} |