browser/base/content/test/general/browser_bug609700.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/test/general/browser_bug609700.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +function test() {
     1.5 +  waitForExplicitFinish();
     1.6 +
     1.7 +  Services.ww.registerNotification(function (aSubject, aTopic, aData) {
     1.8 +    if (aTopic == "domwindowopened") {
     1.9 +      Services.ww.unregisterNotification(arguments.callee);
    1.10 +
    1.11 +      ok(true, "duplicateTabIn opened a new window");
    1.12 +
    1.13 +      whenDelayedStartupFinished(aSubject, function () {
    1.14 +        executeSoon(function () {
    1.15 +          aSubject.close();
    1.16 +          finish();
    1.17 +        });
    1.18 +      }, false);
    1.19 +    }
    1.20 +  });
    1.21 +
    1.22 +  duplicateTabIn(gBrowser.selectedTab, "window");
    1.23 +}

mercurial