B2G/gecko/browser/components/tabview/test/browser_tabview_bug663421.js
// Groups should be closed when their last tab is dragged out.
Groups should be closed when their last tab is dragged out.
Groups should be closed when their last tab is dragged out .
function test4() {
    groupItem = createGroupItemWithBlankTabs(win, 200, 200, 20, 1);
    checkNumberOfGroupItems(2);
    let tab = win.gBrowser.tabs[1];
    let target = tab._tabViewTabItem.container;
    waitForFocus(function () {
      EventUtils.synthesizeMouseAtCenter(target, {type: "mousedown"}, cw);
      EventUtils.synthesizeMouse(target, 600, 5, {type: "mousemove"}, cw);
      EventUtils.synthesizeMouse(target, 600, 5, {type: "mouseup"}, cw);
      checkNumberOfGroupItems(2);
      closeGroupItem(cw.GroupItems.groupItems[1], next);
    }, win);
  }
function test4 ( ) { groupItem = createGroupItemWithBlankTabs ( win , 200 , 200 , 20 , 1 ) ; checkNumberOfGroupItems ( 2 ) ; let tab = win . gBrowser . tabs [ 1 ] ; let target = tab . _tabViewTabItem . container ; waitForFocus ( function ( ) { EventUtils . synthesizeMouseAtCenter ( target , { type : "mousedown" } , cw ) ; EventUtils . synthesizeMouse ( target , 600 , 5 , { type : "mousemove" } , cw ) ; EventUtils . synthesizeMouse ( target , 600 , 5 , { type : "mouseup" } , cw ) ; checkNumberOfGroupItems ( 2 ) ; closeGroupItem ( cw . GroupItems . groupItems [ 1 ] , next ) ; } , win ) ; }
Groups should be closed when their last tab is dragged out.
Groups should be closed when their last tab is dragged out .