Attempt to fix bug 1137717 by focusing the test frame
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 02 Mar 2015 14:17:38 -0500
changeset 246888 6195f1c0b532cb045eae68e150e522761153d750
parent 246870 0b3c520002adf11e3d1f6147ad1b4c58a99be82e
child 246889 1748c99efd92fb89983c2ee34de44d35c570344d
push id884
push userdburns@mozilla.com
push dateTue, 03 Mar 2015 15:29:12 +0000
bugs1137717
milestone39.0a1
Attempt to fix bug 1137717 by focusing the test frame
layout/base/tests/bug1132768-1.html
--- a/layout/base/tests/bug1132768-1.html
+++ b/layout/base/tests/bug1132768-1.html
@@ -1,13 +1,14 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
   <script src="/tests/SimpleTest/EventUtils.js"></script>
   <script>
     function test() {
+      focus();
       synthesizeMouseAtCenter(document.querySelector("span"), {});
     }
     function focused() {
       document.documentElement.removeAttribute("class");
     }
   </script>
   <body onload="setTimeout(test, 0)">
     <div contenteditable spellcheck="false" onfocus="focused()"