gecko/browser/base/content/test/general/browser_bug609700.js
Olli Pettay 7b7c86eb59 Bug 949227 - browser_bug609700.js | Found an unexpected tab at the end of test run: about:blank, r=gavin
--HG--
extra : rebase_source : 8d8713551121c58a2cfc5a58516ea1f7a16f1d61
2013-12-14 01:15:23 +02:00

21 lines
506 B
JavaScript

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");
}