Bug 1016184 - part 3c - Fix test_focus_disabled.html. r=ehsan
☠☠ backed out by 1f216e2e339e ☠ ☠
authorTing-Yu Lin <tlin@mozilla.com>
Sun, 27 Jul 2014 00:16:00 +0200
changeset 196987 8acd5e707c8339f3813563a4489d9cb2c306c964
parent 196986 d0513eae0c979b3ee51e6d1ceac80559cc90dc28
child 196988 16854e321f2380018ec33f587d91a6d214b20047
push id47020
push usercbook@mozilla.com
push dateThu, 31 Jul 2014 06:41:00 +0000
treeherdermozilla-inbound@0893f2ef4b9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1016184
milestone34.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 1016184 - part 3c - Fix test_focus_disabled.html. r=ehsan Move the witness down so that touch caret won't cover other elements when witness is focused().
dom/events/test/test_focus_disabled.html
--- a/dom/events/test/test_focus_disabled.html
+++ b/dom/events/test/test_focus_disabled.html
@@ -9,20 +9,16 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.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=375008">Mozilla Bug 375008</a>
 <p id="display"></p>
 <div id="content">
-  <div>
-    <input id='witness'>
-  </div>
-
   <div id='not-focusable'>
     <!-- Disabled elements -->
     <button hidden disabled>foo</button>
     <input hidden disabled>
     <fieldset hidden disabled>foo</fieldset>
     <select hidden disabled><option>foo</option></select>
     <textarea hidden disabled></textarea>
     <optgroup hidden disabled><option>foo</option></optgroup>
@@ -47,16 +43,20 @@ https://bugzilla.mozilla.org/show_bug.cg
     <input hidden>
     <fieldset hidden>foo</fieldset>
     <select hidden><option>foo</option></select>
     <textarea hidden></textarea>
     <optgroup hidden><option>foo</option></optgroup>
     <option hidden>foo</option>
   </div>
 
+  <div>
+    <input id='witness'>
+  </div>
+
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 375008 **/
 
 /*
  * This test is divided in three parts: