testing/mochitest/tests/browser/browser_zz_fail_openwindow.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/mochitest/tests/browser/browser_zz_fail_openwindow.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +function test() {
     1.5 +  waitForExplicitFinish();
     1.6 +  function done() {
     1.7 +    ok(true, "timeout ran");
     1.8 +    finish();
     1.9 +  }
    1.10 +
    1.11 +  ok(OpenBrowserWindow(), "opened browser window");
    1.12 +  // and didn't close it!
    1.13 +
    1.14 +  setTimeout(done, 10000);
    1.15 +}

mercurial