Bug 1415787 - Wait for focus before proceeding test. r?daoshengmu draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 21 Dec 2017 10:49:06 +0900
changeset 713843 a9daf91959dc83fed535f4473ec23d9ab50d5f0b
parent 713842 541b1b6af8a8c05966b1b9c1bfde945129aa1bf2
child 744455 6844b477c5c33dee80bb84882fcb62291050cd66
push id93775
push userhikezoe@mozilla.com
push dateThu, 21 Dec 2017 01:49:27 +0000
reviewersdaoshengmu
bugs1415787
milestone59.0a1
Bug 1415787 - Wait for focus before proceeding test. r?daoshengmu To process focus handling deterministic, we need to wait for focus before proceeding test. MozReview-Commit-ID: 78EWlA3QuWM
dom/svg/test/test_tabindex.html
--- a/dom/svg/test/test_tabindex.html
+++ b/dom/svg/test/test_tabindex.html
@@ -91,13 +91,14 @@ function main()
     }
   } catch(e) {
     ok(false, "Got unexpected exception" + e);
   }
 
   SimpleTest.finish();
 }
 
-window.addEventListener("load", main);
+SimpleTest.waitForFocus(main);
+
 </script>
 </pre>
 </body>
 </html>