summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/browser_async.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mochitest/tests/browser/browser_async.js')
-rw-r--r--testing/mochitest/tests/browser/browser_async.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/mochitest/tests/browser/browser_async.js b/testing/mochitest/tests/browser/browser_async.js
new file mode 100644
index 0000000000..d07cb21740
--- /dev/null
+++ b/testing/mochitest/tests/browser/browser_async.js
@@ -0,0 +1,9 @@
+function test() {
+ waitForExplicitFinish();
+ function done() {
+ ok(true, "timeout ran");
+ finish();
+ }
+ // eslint-disable-next-line mozilla/no-arbitrary-setTimeout
+ setTimeout(done, 500);
+}