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