OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="resources/reveal-utilities.js"></script> | 3 <script type="text/javascript" src="resources/reveal-utilities.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <div>When the caret is scrolled out, on starting typing it must be brought to th
e center of the control.</div> | 6 <div>When the caret is scrolled out, on starting typing it must be brought to th
e center of the control.</div> |
7 <textarea name="textarea" id="textarea" rows="10" cols="10" style="-webkit-trans
form:rotate(180deg)"></textarea> | 7 <textarea name="textarea" id="textarea" rows="10" cols="10" style="-webkit-trans
form:rotate(180deg)"></textarea> |
8 <script> | 8 <script> |
9 | 9 |
10 var textArea = document.getElementById("textarea"); | 10 var textArea = document.getElementById("textarea"); |
11 textArea.textContent = generateNumbers(0, 30, 2, "\n"); | 11 textArea.textContent = generateNumbers(0, 30, 2, "\n"); |
12 textArea.focus(); | 12 textArea.focus(); |
13 textArea.selectionStart = 36; | 13 textArea.selectionStart = 36; |
14 if (window.eventSender) { | 14 if (window.eventSender) { |
15 eventSender.keyDown(">"); | 15 eventSender.keyDown(">"); |
16 document.body.innerHTML = textarea.scrollTop > 0 ? "PASS" : "FAIL"; | 16 document.body.innerHTML = textarea.scrollTop > 0 ? "PASS" : "FAIL"; |
17 } | 17 } |
18 | 18 |
19 if (window.testRunner) { | 19 if (window.testRunner) { |
20 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
21 } | 21 } |
22 | 22 |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
OLD | NEW |