OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script src="resources/spatial-navigation-utils.js"></script> | 4 <script src="resources/spatial-navigation-utils.js"></script> |
5 </head> | 5 </head> |
6 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> | 6 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <table style="text-align: left; width: 100%; margin-left: auto; margin-right
: auto;" border="1" cellpadding="2" cellspacing="1"> | 8 <table style="text-align: left; width: 100%; margin-left: auto; margin-right
: auto;" border="1" cellpadding="2" cellspacing="1"> |
9 <tbody> | 9 <tbody> |
10 <tr> | 10 <tr> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 ["Left", "start"], | 55 ["Left", "start"], |
56 ["Left", "start"], // The caret is at the beginning of TEXTAREA. | 56 ["Left", "start"], // The caret is at the beginning of TEXTAREA. |
57 ["Left", "4"], | 57 ["Left", "4"], |
58 ["Right", "start"], | 58 ["Right", "start"], |
59 ["DONE", "DONE"] | 59 ["DONE", "DONE"] |
60 ]; | 60 ]; |
61 | 61 |
62 if (window.testRunner) { | 62 if (window.testRunner) { |
63 testRunner.dumpAsText(); | 63 testRunner.dumpAsText(); |
64 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 64 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
65 window.internals.settings.setSpatialNavigationEnabled(true); | 65 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
66 testRunner.waitUntilDone(); | 66 testRunner.waitUntilDone(); |
67 } | 67 } |
68 | 68 |
69 function runTest() | 69 function runTest() |
70 { | 70 { |
71 var textarea = document.getElementById("start"); | 71 var textarea = document.getElementById("start"); |
72 textarea.value = "abc\nd"; | 72 textarea.value = "abc\nd"; |
73 | 73 |
74 // starting the test itself: get to a known place. | 74 // starting the test itself: get to a known place. |
75 textarea.focus(); | 75 textarea.focus(); |
(...skipping 14 matching lines...) Expand all Loading... |
90 shouldBeEqualToString("document.getElementById('start').value", text); | 90 shouldBeEqualToString("document.getElementById('start').value", text); |
91 | 91 |
92 testRunner.notifyDone(); | 92 testRunner.notifyDone(); |
93 } | 93 } |
94 | 94 |
95 window.onload = runTest; | 95 window.onload = runTest; |
96 | 96 |
97 </script> | 97 </script> |
98 </body> | 98 </body> |
99 </html> | 99 </html> |
OLD | NEW |