| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function runTest() | 4 function runTest() |
| 5 { | 5 { |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 | 8 |
| 9 var ta = document.getElementById('ta'); | 9 var ta = document.getElementById('ta'); |
| 10 ta.focus(); |
| 10 ta.setSelectionRange(4, 16); | 11 ta.setSelectionRange(4, 16); |
| 11 | 12 |
| 12 var lastSelectedLine; | 13 var lastSelectedLine; |
| 13 if (window.eventSender) { | 14 if (window.eventSender) { |
| 14 eventSender.keyDown("pageDown",["shiftKey"]); | 15 eventSender.keyDown("pageDown",["shiftKey"]); |
| 15 lastSelectedLine = (ta.value).substring(ta.selectionEnd - 4, ta.sele
ctionEnd); | 16 lastSelectedLine = (ta.value).substring(ta.selectionEnd - 4, ta.sele
ctionEnd); |
| 16 eventSender.keyDown("upArrow",["shiftKey"]); | 17 eventSender.keyDown("upArrow",["shiftKey"]); |
| 17 } | 18 } |
| 18 | 19 |
| 19 var result; | 20 var result; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 L10 | 48 L10 |
| 48 L11 | 49 L11 |
| 49 L12 | 50 L12 |
| 50 L13 | 51 L13 |
| 51 L14 | 52 L14 |
| 52 L15 | 53 L15 |
| 53 L16 | 54 L16 |
| 54 </textarea> | 55 </textarea> |
| 55 <p id="result">TEST HAS NOT RUN</p> | 56 <p id="result">TEST HAS NOT RUN</p> |
| 56 </body> | 57 </body> |
| OLD | NEW |