| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) | |
| 5 testRunner.dumpEditingCallbacks(); | |
| 6 </script> | |
| 7 | |
| 8 | |
| 9 <script> | |
| 10 | |
| 11 function editingTest() { | |
| 12 var start = document.getElementById("start"); | |
| 13 | |
| 14 x = start.offsetLeft + 2; | |
| 15 y = start.offsetTop + 2; | |
| 16 | |
| 17 eventSender.mouseMoveTo(x, y); | |
| 18 eventSender.mouseDown(); | |
| 19 eventSender.mouseUp(); | |
| 20 eventSender.mouseDown(); | |
| 21 | |
| 22 y = y + 30; | |
| 23 | |
| 24 eventSender.mouseMoveTo(x, y); | |
| 25 eventSender.mouseUp(); | |
| 26 | |
| 27 testRunner.execCommand("MoveBackward"); | |
| 28 testRunner.execCommand("MoveDown"); | |
| 29 testRunner.execCommand("MoveForward"); | |
| 30 testRunner.execCommand("MoveLeft"); | |
| 31 testRunner.execCommand("MoveRight"); | |
| 32 testRunner.execCommand("MoveToBeginningOfDocument"); | |
| 33 testRunner.execCommand("MoveToBeginningOfLine"); | |
| 34 testRunner.execCommand("MoveToBeginningOfParagraph"); | |
| 35 testRunner.execCommand("MoveToEndOfDocument"); | |
| 36 testRunner.execCommand("MoveToEndOfLine"); | |
| 37 testRunner.execCommand("MoveToEndOfParagraph"); | |
| 38 testRunner.execCommand("MoveUp"); | |
| 39 testRunner.execCommand("MoveParagraphBackward"); | |
| 40 testRunner.execCommand("MoveParagraphForward"); | |
| 41 testRunner.execCommand("MoveWordBackward"); | |
| 42 testRunner.execCommand("MoveWordForward"); | |
| 43 testRunner.execCommand("MoveWordLeft"); | |
| 44 testRunner.execCommand("MoveWordRight"); | |
| 45 testRunner.execCommand("PageDown"); | |
| 46 testRunner.execCommand("PageUp"); | |
| 47 } | |
| 48 | |
| 49 </script> | |
| 50 </head> | |
| 51 <body style="overflow:hidden"> | |
| 52 This tests whether certain NSResponder methods that should only operate on edita
ble regions modify a selection that is not in an editable region.<br> | |
| 53 This is a para<span style="color:blue;" id="start">g</span>raph.<br> | |
| 54 Some text<br> | |
| 55 Some text<br> | |
| 56 Some text<br> | |
| 57 Some text<br> | |
| 58 This is a paragraph. | |
| 59 <script> | |
| 60 editingTest(); | |
| 61 </script> | |
| 62 </html> | |
| OLD | NEW |