Bug 678420 - target div during back nav, r=ehsan, a=testonly
authorJonathan Griffin <jgriffin@mozilla.com>
Mon, 22 Aug 2011 11:17:37 -0700
changeset 76007 6385d30812f3a6f299ae00527059afa32407d3b3
parent 76006 870b53893fd672ccee15847937e412e3ae117edb
child 76008 656f7fbcdb1224f278ab84f5458526f53fa5d416
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersehsan, testonly
bugs678420
milestone9.0a1
Bug 678420 - target div during back nav, r=ehsan, a=testonly
layout/base/tests/bug613433-1.html
layout/base/tests/bug613433-2.html
layout/base/tests/bug613433-3.html
--- a/layout/base/tests/bug613433-1.html
+++ b/layout/base/tests/bug613433-1.html
@@ -7,18 +7,18 @@
         overflow-x: auto;
       }
     </style>
     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     <script>
       function test() {
         document.querySelector("div").focus();
         // type a character, then press backspace to delete it
-        sendKey("X", window);
-        sendKey("BACK_SPACE", window);
+        sendKey("X", "div1");
+        sendKey("BACK_SPACE", "div1");
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
   <body onload="test()">
-    <div contenteditable></div>
+    <div id="div1" contenteditable></div>
   </body>
 </html>
--- a/layout/base/tests/bug613433-2.html
+++ b/layout/base/tests/bug613433-2.html
@@ -7,18 +7,18 @@
         overflow-y: auto;
       }
     </style>
     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     <script>
       function test() {
         document.querySelector("div").focus();
         // type a character, then press backspace to delete it
-        sendKey("X", window);
-        sendKey("BACK_SPACE", window);
+        sendKey("X", "div1");
+        sendKey("BACK_SPACE", "div1");
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
   <body onload="test()">
-    <div contenteditable></div>
+    <div id="div1" contenteditable></div>
   </body>
 </html>
--- a/layout/base/tests/bug613433-3.html
+++ b/layout/base/tests/bug613433-3.html
@@ -7,18 +7,18 @@
         overflow: auto;
       }
     </style>
     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     <script>
       function test() {
         document.querySelector("div").focus();
         // type a character, then press backspace to delete it
-        sendKey("X", window);
-        sendKey("BACK_SPACE", window);
+        sendKey("X", "div1");
+        sendKey("BACK_SPACE", "div1");
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
   <body onload="test()">
-    <div contenteditable></div>
+    <div id="div1" contenteditable></div>
   </body>
 </html>