| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 initTest(resultMap, testCompleted); | 78 initTest(resultMap, testCompleted); |
| 79 } | 79 } |
| 80 | 80 |
| 81 function testCompleted() | 81 function testCompleted() |
| 82 { | 82 { |
| 83 if (!window.testRunner) | 83 if (!window.testRunner) |
| 84 return; | 84 return; |
| 85 | 85 |
| 86 document.getElementById('start').value = ""; | 86 document.getElementById('start').value = ""; |
| 87 var text = 'A text containing a space\nand a new line'; | 87 var text = 'A text containing a space\nand a new line'; |
| 88 for (var i = 0; i < text.length; ++i) | 88 for (var i = 0; i < text.length; ++i) { |
| 89 eventSender.keyDown(text.charAt(i)); | 89 var key = text.charAt(i); |
| 90 if (key == '\n') |
| 91 key = 'Enter'; |
| 92 eventSender.keyDown(key); |
| 93 } |
| 90 shouldBeEqualToString("document.getElementById('start').value", text); | 94 shouldBeEqualToString("document.getElementById('start').value", text); |
| 91 | 95 |
| 92 testRunner.notifyDone(); | 96 testRunner.notifyDone(); |
| 93 } | 97 } |
| 94 | 98 |
| 95 window.onload = runTest; | 99 window.onload = runTest; |
| 96 | 100 |
| 97 </script> | 101 </script> |
| 98 </body> | 102 </body> |
| 99 </html> | 103 </html> |
| OLD | NEW |