| 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 19 matching lines...) Expand all Loading... |
| 30 * Pre-conditions:<br>\ | 30 * Pre-conditions:<br>\ |
| 31 1) DRT support for SNav enable/disable.<br>\ | 31 1) DRT support for SNav enable/disable.<br>\ |
| 32 * Navigation steps:<br>\ | 32 * Navigation steps:<br>\ |
| 33 1) Loads this page, focus goes to "start" automatically.<br>\ | 33 1) Loads this page, focus goes to "start" automatically.<br>\ |
| 34 2) Focus moves away from textarea in 4 different directions to n
eighbor nodes and back.<br>'); | 34 2) Focus moves away from textarea in 4 different directions to n
eighbor nodes and back.<br>'); |
| 35 | 35 |
| 36 var resultMap = [ | 36 var resultMap = [ |
| 37 ["Down", "start"], | 37 ["Down", "start"], |
| 38 ["Down", "start"], | 38 ["Down", "start"], |
| 39 ["Down", "8"], | 39 ["Down", "8"], |
| 40 ["Up", "start"], | 40 ["Up", "start"], // The caret is at the end of TEXTAREA. |
| 41 ["Up", "start"], // The caret is before 'b' in TEXTAREA. |
| 42 ["Up", "start"], // The caret is at the beginning of TEXTAREA. |
| 41 ["Up", "2"], | 43 ["Up", "2"], |
| 42 ["Down", "start"], | 44 ["Down", "start"], |
| 43 ["Right", "start"], | 45 ["Right", "start"], |
| 44 ["Right", "start"], | 46 ["Right", "start"], |
| 45 ["Right", "start"], | 47 ["Right", "start"], |
| 46 ["Right", "start"], | 48 ["Right", "start"], |
| 47 ["Right", "start"], | 49 ["Right", "start"], // The caret is at the end of TEXTAREA. |
| 48 ["Right", "6"], | 50 ["Right", "6"], |
| 51 ["Left", "start"], // The caret is at the end of TEXTAREA. |
| 49 ["Left", "start"], | 52 ["Left", "start"], |
| 53 ["Left", "start"], |
| 54 ["Left", "start"], |
| 55 ["Left", "start"], |
| 56 ["Left", "start"], // The caret is at the beginning of TEXTAREA. |
| 50 ["Left", "4"], | 57 ["Left", "4"], |
| 51 ["Right", "start"], | 58 ["Right", "start"], |
| 52 ["DONE", "DONE"] | 59 ["DONE", "DONE"] |
| 53 ]; | 60 ]; |
| 54 | 61 |
| 55 if (window.testRunner) { | 62 if (window.testRunner) { |
| 56 testRunner.dumpAsText(); | 63 testRunner.dumpAsText(); |
| 57 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); | 64 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
| 58 window.internals.settings.setSpatialNavigationEnabled(true); | 65 window.internals.settings.setSpatialNavigationEnabled(true); |
| 59 testRunner.waitUntilDone(); | 66 testRunner.waitUntilDone(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 83 shouldBeEqualToString("document.getElementById('start').value", text); | 90 shouldBeEqualToString("document.getElementById('start').value", text); |
| 84 | 91 |
| 85 testRunner.notifyDone(); | 92 testRunner.notifyDone(); |
| 86 } | 93 } |
| 87 | 94 |
| 88 window.onload = runTest; | 95 window.onload = runTest; |
| 89 | 96 |
| 90 </script> | 97 </script> |
| 91 </body> | 98 </body> |
| 92 </html> | 99 </html> |
| OLD | NEW |