mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 19:59:18 +02:00
11 lines
430 B
JavaScript
11 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");
|
|
}
|
|
|