/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ Components.utils.import("resource://gre/modules/Promise.jsm", this); function test() { let cw; let win; let currentTest; let getGroupItem = function (index) { return cw.GroupItems.groupItems[index]; } let createGroupItem = function (numTabs) { let bounds = new cw.Rect(20, 20, 200, 200); let groupItem = new cw.GroupItem([], {bounds: bounds, immediately: true}); cw.UI.setActive(groupItem); for (let i=0; i