testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/mochitest/tests/browser/browser_fail_unexpectedTimeout.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +function test() {
     1.5 +  function message() {
     1.6 +    info("This should delay timeout");
     1.7 +  }
     1.8 +  function end() {
     1.9 +    ok(true, "Should have not timed out, but notified long running test");
    1.10 +    finish();
    1.11 +  }
    1.12 +  waitForExplicitFinish();
    1.13 +  setTimeout(message, 20000);
    1.14 +  setTimeout(end, 40000);
    1.15 +}

mercurial