Bug 875616 - Disable titlebar paneltop test on Linux due to unreliable window positioning timing. a=test-only
authorNeil Deakin <neil@mozilla.com>
Fri, 06 Sep 2013 09:47:39 -0400
changeset 153991 a666fa5189509fe08f5b93a89cd0356d62a3c1cb
parent 153990 cfc8a7b82ff12c83a3a323e2569c8af1b356a7e4
child 153992 89d9f9747bea18859bf14811b606ca8b50c0eb7e
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs875616
milestone25.0a2
Bug 875616 - Disable titlebar paneltop test on Linux due to unreliable window positioning timing. a=test-only
toolkit/content/tests/chrome/window_titlebar.xul
--- a/toolkit/content/tests/chrome/window_titlebar.xul
+++ b/toolkit/content/tests/chrome/window_titlebar.xul
@@ -197,17 +197,17 @@ function popupshown_step2(oldrect, panel
   var panellabel = panel.firstChild.firstChild;
   synthesizeMouse(panellabel, 2, 2, { type: "mousedown" });
   waitForWindowMove(panellabel, 22, 22, popupshown_step3, newrect, panel, anchored);
 }
 
 function popupshown_step3(oldrect, panel, anchored)
 {
   // skip this check on Linux for the same window positioning reasons as above
-  if (navigator.platform.indexOf("Linux") == -1 || panel.id != "panelanchored") {
+  if (navigator.platform.indexOf("Linux") == -1 || (panel.id != "panelanchored" && panel.id != "paneltop")) {
     // next, drag the titlebar in the panel
     var newrect = panel.getBoundingClientRect();
     SimpleTest.is(newrect.left, oldrect.left + 20, panel.id + " move popup horizontal");
     SimpleTest.is(newrect.top, oldrect.top + 20, panel.id + " move popup vertical");
     synthesizeMouse(document.getElementById("panellabel"), 22, 22, { type: "mouseup" });
 
     synthesizeMouse(document.getElementById("button"), 5, 5, { type: "mousemove" });
     newrect = panel.getBoundingClientRect();