michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: michael@0: newWindowWithTabView(function (win) { michael@0: registerCleanupFunction(function () win.close()); michael@0: michael@0: let cw = win.TabView.getContentWindow(); michael@0: let groupItem = cw.GroupItems.groupItems[0]; michael@0: groupItem.setBounds(new cw.Rect(cw.innerWidth - 200, 0, 200, 200)); michael@0: michael@0: whenTabViewIsHidden(function () waitForFocus(finish), win); michael@0: michael@0: waitForFocus(function () { michael@0: let button = cw.document.getElementById("exit-button"); michael@0: EventUtils.synthesizeMouseAtCenter(button, {}, cw); michael@0: }, cw); michael@0: }); michael@0: }