| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/dump-as-markup.js"></script> | 4 <script src="../../resources/dump-as-markup.js"></script> |
| 5 <style> | 5 <style> |
| 6 .editing { | 6 .editing { |
| 7 border: 2px solid red; | 7 border: 2px solid red; |
| 8 font-size: 24px; | 8 font-size: 24px; |
| 9 } | 9 } |
| 10 .explanation { | 10 .explanation { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s
pace; -khtml-line-break: after-white-space;"> | 37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s
pace; -khtml-line-break: after-white-space;"> |
| 38 <div id="test" class="editing"> | 38 <div id="test" class="editing"> |
| 39 test test | 39 test test |
| 40 </div> | 40 </div> |
| 41 </div> | 41 </div> |
| 42 <script src="../editing.js"></script> | 42 <script src="../editing.js"></script> |
| 43 <script> | 43 <script> |
| 44 | 44 |
| 45 function editingTest() { | 45 function editingTest() { |
| 46 window.getSelection().collapse(test.firstChild, 1); |
| 46 doubleClickAtSelectionStart(); | 47 doubleClickAtSelectionStart(); |
| 47 copyCommand(); | 48 copyCommand(); |
| 48 moveSelectionForwardByCharacterCommand(); | 49 moveSelectionForwardByCharacterCommand(); |
| 49 pasteCommand(); | 50 pasteCommand(); |
| 50 } | 51 } |
| 51 | 52 |
| 52 runDumpAsTextEditingTest(true); | 53 runDumpAsTextEditingTest(true); |
| 53 </script> | 54 </script> |
| 54 </body> | 55 </body> |
| 55 </html> | 56 </html> |
| OLD | NEW |