michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: michael@0: Services.ww.registerNotification(function (aSubject, aTopic, aData) { michael@0: if (aTopic == "domwindowopened") { michael@0: Services.ww.unregisterNotification(arguments.callee); michael@0: michael@0: ok(true, "duplicateTabIn opened a new window"); michael@0: michael@0: whenDelayedStartupFinished(aSubject, function () { michael@0: executeSoon(function () { michael@0: aSubject.close(); michael@0: finish(); michael@0: }); michael@0: }, false); michael@0: } michael@0: }); michael@0: michael@0: duplicateTabIn(gBrowser.selectedTab, "window"); michael@0: }