gecko/browser/base/content/test/general/browser_bug380960.js
Dão Gottwald 7c126da724 Bug 585361 - Remove dead parts from browser_bug380960.js
--HG--
extra : rebase_source : f1b562f18e0be9545191cbaf4782138944d9e585
2014-05-03 01:49:11 +02:00

12 lines
430 B
JavaScript

function test() {
var tab = gBrowser.addTab("about:blank", { skipAnimation: true });
gBrowser.removeTab(tab);
is(tab.parentNode, null, "tab removed immediately");
tab = gBrowser.addTab("about:blank", { skipAnimation: true });
gBrowser.removeTab(tab, { animate: true });
gBrowser.removeTab(tab);
is(tab.parentNode, null, "tab removed immediately when calling removeTab again after the animation was kicked off");
}