summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/browser_bug380960.js
blob: 5571d8f08eb73a0f92b0ee30b34ad1b2aae9ccde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function test() {
  var tab = BrowserTestUtils.addTab(gBrowser, "about:blank", {
    skipAnimation: true,
  });
  gBrowser.removeTab(tab);
  is(tab.parentNode, null, "tab removed immediately");

  tab = BrowserTestUtils.addTab(gBrowser, "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"
  );
}