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

21 lines
506 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
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");
}