2011-09-26 19:33:35 -07:00
|
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
waitForExplicitFinish();
|
|
|
|
|
|
|
|
showTabView(function () {
|
|
|
|
let tab = gBrowser.addTab();
|
|
|
|
registerCleanupFunction(function () gBrowser.removeTab(tab));
|
|
|
|
|
2012-05-04 07:32:35 -07:00
|
|
|
let cw = TabView.getContentWindow();
|
|
|
|
whenAppTabIconAdded(cw.GroupItems.groupItems[0], function() {
|
2012-03-14 09:24:03 -07:00
|
|
|
let body = cw.document.body;
|
|
|
|
let [appTabIcon] = cw.iQ(".appTabTray .appTabIcon");
|
2011-09-26 19:33:35 -07:00
|
|
|
|
2012-03-14 09:24:03 -07:00
|
|
|
EventUtils.synthesizeMouseAtCenter(appTabIcon, {type: "mousedown"}, cw);
|
|
|
|
EventUtils.synthesizeMouse(body, 500, 100, {type: "mousemove"}, cw);
|
|
|
|
EventUtils.synthesizeMouse(body, 500, 100, {type: "mouseup"}, cw);
|
2011-09-26 19:33:35 -07:00
|
|
|
|
2012-03-14 09:24:03 -07:00
|
|
|
ok(TabView.isVisible(), "tabview is still visible");
|
2011-09-26 19:33:35 -07:00
|
|
|
|
2012-03-14 09:24:03 -07:00
|
|
|
hideTabView(finish);
|
|
|
|
});
|
|
|
|
gBrowser.pinTab(tab);
|
2011-09-26 19:33:35 -07:00
|
|
|
});
|
|
|
|
}
|