mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
27 lines
843 B
JavaScript
27 lines
843 B
JavaScript
/* 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));
|
|
|
|
let cw = TabView.getContentWindow();
|
|
whenAppTabIconAdded(cw.GroupItems.groupItems[0], function() {
|
|
let body = cw.document.body;
|
|
let appTabIcon = cw.iQ(".appTabTray .appTabIcon")[0];
|
|
|
|
EventUtils.synthesizeMouseAtCenter(appTabIcon, {type: "mousedown"}, cw);
|
|
EventUtils.synthesizeMouse(body, 500, 100, {type: "mousemove"}, cw);
|
|
EventUtils.synthesizeMouse(body, 500, 100, {type: "mouseup"}, cw);
|
|
|
|
ok(TabView.isVisible(), "tabview is still visible");
|
|
|
|
hideTabView(finish);
|
|
});
|
|
gBrowser.pinTab(tab);
|
|
});
|
|
}
|