mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d5575e7d91
--HG-- extra : rebase_source : f6568e83e23c036f21270e0f133ee06b192b1f9e
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
newWindowWithTabView(function(win) {
|
|
registerCleanupFunction(function() {
|
|
win.close();
|
|
});
|
|
|
|
let cw = win.TabView.getContentWindow();
|
|
|
|
let groupItemOne = cw.GroupItems.groupItems[0];
|
|
is(groupItemOne.getChildren().length, 1, "Group one has 1 tab item");
|
|
|
|
let groupItemTwo = createGroupItemWithBlankTabs(win, 300, 300, 40, 1);
|
|
is(groupItemTwo.getChildren().length, 1, "Group two has 1 tab items");
|
|
|
|
whenTabViewIsHidden(function() {
|
|
win.gBrowser.removeTab(win.gBrowser.selectedTab);
|
|
executeSoon(function() {
|
|
win.undoCloseTab();
|
|
|
|
groupItemTwo.addSubscriber("childAdded", function onChildAdded(data) {
|
|
groupItemTwo.removeSubscriber("childAdded", onChildAdded);
|
|
|
|
is(groupItemOne.getChildren().length, 1, "Group one still has 1 tab item");
|
|
is(groupItemTwo.getChildren().length, 1, "Group two still has 1 tab item");
|
|
});
|
|
|
|
finish();
|
|
});
|
|
}, win);
|
|
groupItemTwo.getChild(0).zoomIn();
|
|
}, function(win) {
|
|
let newTab = win.gBrowser.addTab();
|
|
win.gBrowser.pinTab(newTab);
|
|
});
|
|
}
|