summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_bug609700.js
blob: 8b4f1ea9160d49b31c083be2d5ed66156f506385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function test() {
  waitForExplicitFinish();

  Services.ww.registerNotification(function (aSubject, aTopic, aData) {
    if (aTopic == "domwindowopened") {
      Services.ww.unregisterNotification(arguments.callee);

      ok(true, "duplicateTabIn opened a new window");

      whenDelayedStartupFinished(aSubject, function () {
        executeSoon(function () {
          aSubject.close();
          finish();
        });
      }, false);
    }
  });

  duplicateTabIn(gBrowser.selectedTab, "window");
}