testing/mochitest/tests/browser/browser_sanityException2.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/mochitest/tests/browser/browser_sanityException2.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +function test() {
     1.5 +  waitForExplicitFinish();
     1.6 +  ok(true, "ok called");
     1.7 +  executeSoon(function() {
     1.8 +    expectUncaughtException();
     1.9 +    throw "this is a deliberately thrown exception";
    1.10 +  });
    1.11 +  executeSoon(function() {
    1.12 +    finish();
    1.13 +  });
    1.14 +}

mercurial