Mypal68/browser/base/content/test/general/browser_bug609700.js
2022-04-16 07:41:55 +03:00

29 lines
570 B
JavaScript

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