Bug 1396136 part 1 - Make forms/input/number/focus-handling.html more robust. r=jwatt
authorXidorn Quan <me@upsuper.org>
Tue, 05 Sep 2017 13:48:59 +1000
changeset 428553 f6a9c476a2dba0632853685a87ab0c6e897d82bc
parent 428552 f22ef580e4cf0315de925f315014571d835e4ab5
child 428554 ffb160236c24436a2270922df53f3a3fadcb86a3
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1396136
milestone57.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 1396136 part 1 - Make forms/input/number/focus-handling.html more robust. r=jwatt MozReview-Commit-ID: DQTigOQkytq
layout/reftests/forms/input/number/focus-handling.html
--- a/layout/reftests/forms/input/number/focus-handling.html
+++ b/layout/reftests/forms/input/number/focus-handling.html
@@ -4,17 +4,19 @@
        get snapshotted before it's been focused. We're not testing                 
        invalidation so we don't need to listen for MozReftestInvalidate.           
   -->                                                                              
   <head>
     <meta charset="utf-8">
     <script>
 
 function begin() {
-  document.getElementsByTagName('input')[1].focus();
+  setTimeout(function() {
+    document.getElementsByTagName('input')[1].focus();
+  }, 0);
 }
 
 function end() {
   setTimeout(function() {
     document.documentElement.className = "";
   }, 0);
 }