diff options
Diffstat (limited to 'testing/mochitest/tests/browser/browser_sanityException2.js')
-rw-r--r-- | testing/mochitest/tests/browser/browser_sanityException2.js | 11 |
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 000000000..0b9296041 --- /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 "this is a deliberately thrown exception"; + }); + executeSoon(function() { + finish(); + }); +} |