| OLD | NEW |
| 1 <html><head> | 1 <html><head> |
| 2 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | 2 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| 3 | 3 |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function runTest() | 9 function runTest() |
| 10 { | 10 { |
| 11 var para = document.getElementById("para"); | 11 var para = document.getElementById("para"); |
| 12 window.getSelection().collapse(para.childNodes.item(1).childNodes.item(0), 1
5); | 12 window.getSelection().collapse(para.childNodes.item(1).childNodes.item(0), 1
5); |
| 13 eventSender.keyDown("rightArrow"); | 13 eventSender.keyDown("ArrowRight"); |
| 14 eventSender.keyDown("rightArrow"); | 14 eventSender.keyDown("ArrowRight"); |
| 15 | 15 |
| 16 document.getElementById("result").innerText = getSelection().baseOffset == 1
7 ? "PASS" : "FAIL"; | 16 document.getElementById("result").innerText = getSelection().baseOffset == 1
7 ? "PASS" : "FAIL"; |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 | 19 |
| 20 <title>Test</title> | 20 <title>Test</title> |
| 21 </head><body onLoad="runTest();"> | 21 </head><body onLoad="runTest();"> |
| 22 <p id="para" style="-webkit-user-modify: read-write; width: 250px; height: 100px
; border: 1px solid blue;">This is a test of <a href="https://bug-25676-attachme
nts.webkit.org/foo.html">links which span multiple lines</a> for various and sun
dry reasons.</p> | 22 <p id="para" style="-webkit-user-modify: read-write; width: 250px; height: 100px
; border: 1px solid blue;">This is a test of <a href="https://bug-25676-attachme
nts.webkit.org/foo.html">links which span multiple lines</a> for various and sun
dry reasons.</p> |
| 23 | 23 |
| 24 <p id="result"></p> | 24 <p id="result"></p> |
| 25 </body></html> | 25 </body></html> |
| OLD | NEW |