summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_bug380960.js
blob: d6b64543bf6c3ef93e6239cbe375d16b1135c52b (plain)
1
2
3
4
5
6
7
8
9
10
11
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");
}