fune/browser/base/content/test/general/browser_bug609700.js
Dan Banner f1eb5aaa84 Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8
MozReview-Commit-ID: JOC1330iFnh

--HG--
extra : rebase_source : 2afcb219d4a0d78f996bdc2c841456d2dccff605
2017-08-23 13:38:24 +01:00

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