Bug 944836 - Remove test that uses MozMouseHitTest on a statusbar. r=dao
authorMarkus Stange <mstange@themasta.com>
Thu, 18 Sep 2014 10:56:30 +0200
changeset 206034 14e633eeb251
parent 206033 3b16d1f20bd9
child 206035 d201d679ac68
push id27511
push userkwierso@gmail.com
push dateThu, 18 Sep 2014 22:38:08 +0000
treeherdermozilla-central@c8e325eee9e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs944836
milestone35.0a1
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 944836 - Remove test that uses MozMouseHitTest on a statusbar. r=dao
toolkit/content/tests/chrome/window_titlebar.xul
--- a/toolkit/content/tests/chrome/window_titlebar.xul
+++ b/toolkit/content/tests/chrome/window_titlebar.xul
@@ -44,21 +44,16 @@
   <panel id="panelfloating" noautohide="true" level="floating"
          onpopupshown="popupshown(this, false)" onpopuphidden="popuphidden('')">
     <titlebar>
       <label id="panellabelfloating" value="Titlebar"/>
     </titlebar>
   </panel>
 
   <button id="button" label="OK"/>
-  <statusbar id="statusbar">
-    <statusbarpanel>
-      <label id="statuslabel" value="Status"/>
-    </statusbarpanel>
-  </statusbar>
 
 <script>
 <![CDATA[
 
 var SimpleTest = window.opener.wrappedJSObject.SimpleTest;
 
 SimpleTest.waitForFocus(test_titlebar, window);
 
@@ -100,30 +95,16 @@ function waitForWindowMove(element, x, y
   }
 }
 
 function test_titlebar()
 {
   var titlebar = document.getElementById("titlebar");
   var label = document.getElementById("label");
 
-  // On Mac, the window can also be moved with the statusbar, but this works
-  // via the MozMouseHittest event, not via mouse events.
-  if (navigator.platform.indexOf("Mac") >= 0) {
-    var preventDefaulted;
-
-    var statuslabel = document.getElementById("statuslabel");
-    preventDefaulted = synthesizeMouse(statuslabel, 2, 2, { type: "MozMouseHittest" });
-    SimpleTest.ok(preventDefaulted, "MozMouseHittest should have been defaultPrevented over statusbar");
-
-    var button = document.getElementById("button");
-    preventDefaulted = synthesizeMouse(button, 2, 2, { type: "MozMouseHittest" });
-    SimpleTest.ok(!preventDefaulted, "MozMouseHittest should NOT have been defaultPrevented over button");
-  }
-
   origoldx = window.screenX;
   origoldy = window.screenY;
 
   var mousedownListener = function (event) mouseDownTarget = event.originalTarget;
   window.addEventListener("mousedown", mousedownListener, false);
   synthesizeMouse(label, 2, 2, { type: "mousedown" });
   SimpleTest.is(mouseDownTarget, titlebar, "movedown on titlebar");
   waitForWindowMove(label, 22, 22, test_titlebar_step2, mousedownListener);