|
1 /* Any copyright is dedicated to the Public Domain. |
|
2 http://creativecommons.org/publicdomain/zero/1.0/ */ |
|
3 |
|
4 function test() { |
|
5 waitForExplicitFinish(); |
|
6 |
|
7 showTabView(function () { |
|
8 let tab = gBrowser.addTab(); |
|
9 registerCleanupFunction(function () gBrowser.removeTab(tab)); |
|
10 |
|
11 let cw = TabView.getContentWindow(); |
|
12 whenAppTabIconAdded(cw.GroupItems.groupItems[0], function() { |
|
13 let body = cw.document.body; |
|
14 let [appTabIcon] = cw.iQ(".appTabTray .appTabIcon"); |
|
15 |
|
16 EventUtils.synthesizeMouseAtCenter(appTabIcon, {type: "mousedown"}, cw); |
|
17 EventUtils.synthesizeMouse(body, 500, 100, {type: "mousemove"}, cw); |
|
18 EventUtils.synthesizeMouse(body, 500, 100, {type: "mouseup"}, cw); |
|
19 |
|
20 ok(TabView.isVisible(), "tabview is still visible"); |
|
21 |
|
22 hideTabView(finish); |
|
23 }); |
|
24 gBrowser.pinTab(tab); |
|
25 }); |
|
26 } |