Backed out changeset 4e29b5422902 (bug 1351148)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 28 Jul 2017 09:20:17 +0200
changeset 420157 2422ceddad003606b23d905c656ff4a31c850dc2
parent 420156 1fb9a39d413c7995ae00ca5f55c44fe251c9b320
child 420158 95551faed54a120214d16620af6fa8d2da50dfa5
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1351148
milestone56.0a1
backs out4e29b5422902f18d9dbe37473878ea65893f1cc4
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
Backed out changeset 4e29b5422902 (bug 1351148)
dom/html/test/test_bug1261673.html
--- a/dom/html/test/test_bug1261673.html
+++ b/dom/html/test/test_bug1261673.html
@@ -3,17 +3,16 @@
 <!--
 https://bugzilla.mozilla.org/show_bug.cgi?id=1261673
 -->
 <head>
   <meta charset="utf-8">
   <title>Test for Bug 1261673</title>
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
-  <script type="text/javascript" src="/tests/SimpleTest/paint_listener.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1261673">Mozilla Bug 1261673</a>
 <p id="display"></p>
 <div id="content" style="display: none">
 </div>
 <input id="test_number" type="number" value=5>
@@ -50,23 +49,29 @@ function runTests() {
     ++numberChange;
   });
 
   function runNext() {
     let p = params[testIdx];
     (p["focus"]) ? input.focus() : input.blur();
     expectChange = p["valueChanged"] == 0 ? expectChange : expectChange + 1;
     result += parseInt(p["valueChanged"]);
-    sendWheelAndPaint(input, 1, 1, { deltaY: p["deltaY"], deltaMode: p["deltaMode"] }, () => {
+    synthesizeWheel(input, 1, 1, { deltaY: p["deltaY"], deltaMode: p["deltaMode"] });
+    window.postMessage("finished", "http://mochi.test:8888");
+    testIdx++;
+  }
+
+  window.addEventListener("message", event => {
+    if (event.data == "finished") {
       ok(input.value == result,
         "Handle wheel in number input test-" + testIdx + " expect " + result +
         " get " + input.value);
       ok(numberChange == expectChange,
          "UA should fire change event when input's value changed, expect " + expectChange + " get " + numberChange);
-      (++testIdx >= params.length) ? SimpleTest.finish() : runNext();
-    });
-  }
+      (testIdx >= params.length) ? SimpleTest.finish() : runNext();
+    }
+  });
   runNext();
 }
 
 </script>
 </body>
 </html>