summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js')
-rw-r--r--testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js14
1 files changed, 14 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 0000000000..d0aef231bd
--- /dev/null
+++ b/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js
@@ -0,0 +1,14 @@
+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();
+ // eslint-disable-next-line mozilla/no-arbitrary-setTimeout
+ setTimeout(message, 20000);
+ // eslint-disable-next-line mozilla/no-arbitrary-setTimeout
+ setTimeout(end, 40000);
+}