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