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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 function runTest() | 60 function runTest() |
61 { | 61 { |
62 // starting the test itself: get to a known place. | 62 // starting the test itself: get to a known place. |
63 document.getElementById("start").focus(); | 63 document.getElementById("start").focus(); |
64 | 64 |
65 initTest(resultMap, testCompleted); | 65 initTest(resultMap, testCompleted); |
66 } | 66 } |
67 | 67 |
68 function testCompleted() | 68 function testCompleted() |
69 { | 69 { |
70 if (window.testRunner) | 70 if (!window.testRunner) |
71 testRunner.notifyDone(); | 71 return; |
| 72 |
| 73 var text = 'A text containing a space'; |
| 74 for (var i = 0; i < text.length; ++i) |
| 75 eventSender.keyDown(text.charAt(i)); |
| 76 shouldBeEqualToString("document.getElementById('start').value", text); |
| 77 |
| 78 testRunner.notifyDone(); |
72 } | 79 } |
73 | 80 |
74 window.onload = runTest; | 81 window.onload = runTest; |
75 | 82 |
76 </script> | 83 </script> |
77 </body> | 84 </body> |
78 </html> | 85 </html> |
OLD | NEW |