| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test ensures the traversal correctness of spatial navigation: | 3 This test ensures the traversal correctness of spatial navigation: |
| 4 focusable elements accessible, including zero-margin content, should be | 4 focusable elements accessible, including zero-margin content, should be |
| 5 accessible. | 5 accessible. |
| 6 --> | 6 --> |
| 7 <head> | 7 <head> |
| 8 <style type="text/css"> | 8 <style type="text/css"> |
| 9 body { | 9 body { |
| 10 background:none repeat scroll 0 0 #FFFFFF; | 10 background:none repeat scroll 0 0 #FFFFFF; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 <script type="application/javascript"> | 26 <script type="application/javascript"> |
| 27 | 27 |
| 28 var resultMap = [ | 28 var resultMap = [ |
| 29 ["Right", "end"], | 29 ["Right", "end"], |
| 30 ["DONE", "DONE"] | 30 ["DONE", "DONE"] |
| 31 ]; | 31 ]; |
| 32 | 32 |
| 33 if (window.testRunner) { | 33 if (window.testRunner) { |
| 34 testRunner.dumpAsText(); | 34 testRunner.dumpAsText(); |
| 35 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 35 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 36 window.internals.settings.setSpatialNavigationEnabled(true); | 36 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
| 37 testRunner.waitUntilDone(); | 37 testRunner.waitUntilDone(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 function runTest() | 40 function runTest() |
| 41 { | 41 { |
| 42 // starting the test itself: get to a known place. | 42 // starting the test itself: get to a known place. |
| 43 document.getElementById("start").focus(); | 43 document.getElementById("start").focus(); |
| 44 | 44 |
| 45 initTest(resultMap, testCompleted); | 45 initTest(resultMap, testCompleted); |
| 46 } | 46 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 <div> | 60 <div> |
| 61 <nobr> | 61 <nobr> |
| 62 <a href="#" id="start"> test1 </a> | 62 <a href="#" id="start"> test1 </a> |
| 63 <a href="#" id="end"> test2 </a> | 63 <a href="#" id="end"> test2 </a> |
| 64 </nobr> | 64 </nobr> |
| 65 </div> | 65 </div> |
| 66 </span> | 66 </span> |
| 67 <div id="console"></div> | 67 <div id="console"></div> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |