summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/browser/browser_sanityException2.js
blob: 0b92960414982e9b79fe9054b2e70411d14cba66 (plain)
1
2
3
4
5
6
7
8
9
10
11
function test() {
  waitForExplicitFinish();
  ok(true, "ok called");
  executeSoon(function() {
    expectUncaughtException();
    throw "this is a deliberately thrown exception";
  });
  executeSoon(function() {
    finish();
  });
}