gecko/testing/mochitest/tests/browser/browser_sanityException.js

6 lines
125 B
JavaScript

function test() {
ok(true, "ok called");
expectUncaughtException();
throw "this is a deliberately thrown exception";
}