| OLD | NEW |
| 1 <body> | 1 <body> |
| 2 <div id="content"> | 2 <div id="content"> |
| 3 <p id="description"></p> | 3 <p id="description"></p> |
| 4 Manual Steps: | 4 Manual Steps: |
| 5 <ol> | 5 <ol> |
| 6 <li>Click "click me" in blue box below.</li> | 6 <li>Click "click me" in blue box below.</li> |
| 7 <li>See caret in blue box. | 7 <li>See caret in blue box. |
| 8 </ol> | 8 </ol> |
| 9 <div id="sample" contenteditable="true" style="border: solid 1px blue">click me<
/div> | 9 <div id="sample" contenteditable="true" style="border: solid 1px blue">click me<
/div> |
| 10 </div> | 10 </div> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 if (window.eventSender) { | 23 if (window.eventSender) { |
| 24 eventSender.mouseMoveTo(sample.offsetLeft + 5, sample.offsetTop + 5); | 24 eventSender.mouseMoveTo(sample.offsetLeft + 5, sample.offsetTop + 5); |
| 25 eventSender.mouseDown(0); | 25 eventSender.mouseDown(0); |
| 26 shouldBeEqualToString('getSelection().type', 'Caret'); | 26 shouldBeEqualToString('getSelection().type', 'Caret'); |
| 27 shouldBe('getSelection().focusNode', 'sample'); | 27 shouldBe('getSelection().focusNode', 'sample'); |
| 28 shouldBe('getSelection().focusOffset', '0'); | 28 shouldBe('getSelection().focusOffset', '0'); |
| 29 $('content').outerHTML = ''; | 29 $('content').outerHTML = ''; |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| 32 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 33 </body> | 32 </body> |
| OLD | NEW |