summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/browser_sanityException2.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mochitest/tests/browser/browser_sanityException2.js')
-rw-r--r--testing/mochitest/tests/browser/browser_sanityException2.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/mochitest/tests/browser/browser_sanityException2.js b/testing/mochitest/tests/browser/browser_sanityException2.js
new file mode 100644
index 0000000000..4512ed982b
--- /dev/null
+++ b/testing/mochitest/tests/browser/browser_sanityException2.js
@@ -0,0 +1,11 @@
+function test() {
+ waitForExplicitFinish();
+ ok(true, "ok called");
+ executeSoon(function () {
+ expectUncaughtException();
+ throw new Error("this is a deliberately thrown exception");
+ });
+ executeSoon(function () {
+ finish();
+ });
+}