Bug 629257 - Mochitest for bug 598375 [f=raymond, r=ian]
authorTim Taubert <tim.taubert@gmx.de>
Thu, 07 Apr 2011 14:51:55 -0700
changeset 67653 054ead621ce34cf068c4de7b27c2c623dec75694
parent 67652 081223e6e3e8bbbe3c43451e0cd53246f7dcf0e0
child 67654 102cafb40f20ae5e10bcba6aabf6d5fd485bf8a1
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersian
bugs629257, 598375
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 629257 - Mochitest for bug 598375 [f=raymond, r=ian]
browser/base/content/test/tabview/Makefile.in
browser/base/content/test/tabview/browser_tabview_bug598375.js
--- a/browser/base/content/test/tabview/Makefile.in
+++ b/browser/base/content/test/tabview/Makefile.in
@@ -68,16 +68,17 @@ include $(topsrcdir)/config/rules.mk
                  browser_tabview_bug595930.js \
                  browser_tabview_bug595943.js \
                  browser_tabview_bug595965.js \
                  browser_tabview_bug596781.js \
                  browser_tabview_bug597248.js \
                  browser_tabview_bug597360.js \
                  browser_tabview_bug597399.js \
                  browser_tabview_bug597980.js \
+                 browser_tabview_bug598375.js \
                  browser_tabview_bug598600.js \
                  browser_tabview_bug599626.js \
                  browser_tabview_bug600645.js \
                  browser_tabview_bug600812.js \
                  browser_tabview_bug602432.js \
                  browser_tabview_bug604098.js \
                  browser_tabview_bug604699.js \
                  browser_tabview_bug606657.js \
new file mode 100644
--- /dev/null
+++ b/browser/base/content/test/tabview/browser_tabview_bug598375.js
@@ -0,0 +1,19 @@
+/* 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 groupItem = cw.GroupItems.groupItems[0];
+    groupItem.setBounds(new cw.Rect(cw.innerWidth - 200, 0, 200, 200));
+
+    whenTabViewIsHidden(finish, win);
+
+    let button = cw.document.getElementById("exit-button");
+    EventUtils.synthesizeMouseAtCenter(button, {}, cw);
+  });
+}