forked from mirrors/gecko-dev
		
	# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D36041 --HG-- extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			495 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			495 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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"
 | 
						|
  );
 | 
						|
}
 |