OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 <script src="resources/spatial-navigation-utils.js"></script> | 4 <script src="resources/spatial-navigation-utils.js"></script> |
5 <script src="js/resources/js-test-post.js"></script> | 5 <script src="js/resources/js-test-post.js"></script> |
6 </head> | 6 </head> |
7 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> | 7 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <table style="text-align: left; width: 100%; margin-left: auto; margin-right
: auto;" border="1" cellpadding="2" cellspacing="1"> | 9 <table style="text-align: left; width: 100%; margin-left: auto; margin-right
: auto;" border="1" cellpadding="2" cellspacing="1"> |
10 <tbody> | 10 <tbody> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 textarea.value = "abc\nd"; | 66 textarea.value = "abc\nd"; |
67 | 67 |
68 // starting the test itself: get to a known place. | 68 // starting the test itself: get to a known place. |
69 document.getElementById("start").focus(); | 69 document.getElementById("start").focus(); |
70 | 70 |
71 initTest(resultMap, testCompleted); | 71 initTest(resultMap, testCompleted); |
72 } | 72 } |
73 | 73 |
74 function testCompleted() | 74 function testCompleted() |
75 { | 75 { |
76 if (window.testRunner) | 76 if (!window.testRunner) |
77 testRunner.notifyDone(); | 77 return; |
| 78 |
| 79 document.getElementById('start').value = ""; |
| 80 var text = 'A text containing a space\nand a new line'; |
| 81 for (var i = 0; i < text.length; ++i) |
| 82 eventSender.keyDown(text.charAt(i)); |
| 83 shouldBeEqualToString("document.getElementById('start').value", text); |
| 84 |
| 85 testRunner.notifyDone(); |
78 } | 86 } |
79 | 87 |
80 window.onload = runTest; | 88 window.onload = runTest; |
81 | 89 |
82 </script> | 90 </script> |
83 </body> | 91 </body> |
84 </html> | 92 </html> |
OLD | NEW |