| OLD | NEW |
| 1 <html> | 1 <!doctype html> |
| 2 <head> | 2 <script src="../../resources/testharness.js"></script> |
| 3 | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | 4 <script src="../assert_selection.js"></script> |
| 5 | |
| 6 <script> | 5 <script> |
| 7 | 6 test(() => assert_selection( |
| 8 function editingTest() { | 7 [ |
| 9 selectAllCommand(); | 8 '<div contenteditable>', |
| 10 moveSelectionForwardByCharacterCommand(); | 9 '<div>abc|</div>', |
| 11 insertParagraphCommand(); | 10 '</div>', |
| 12 typeCharacterCommand(); | 11 ].join(''), |
| 13 } | 12 'insertParagraph', |
| 14 | 13 [ |
| 14 '<div contenteditable>', |
| 15 '<div>abc</div>', |
| 16 '<div>|<br></div>', |
| 17 '</div>', |
| 18 ].join('')), |
| 19 'insert BR at end of block'); |
| 15 </script> | 20 </script> |
| 16 | |
| 17 <title>Editing Test</title> | |
| 18 </head> | |
| 19 <body contenteditable id="root"> | |
| 20 <div id="test">test</div> | |
| 21 | |
| 22 <!-- This test is very similar to other insert-div tests, except that it does no
t place a height (using CSS) on | |
| 23 blocks that are added. Bugs involving "block placeholders" (br elements add
ed to give a block height) | |
| 24 will be exposed in this test but not others. --> | |
| 25 | |
| 26 <script> | |
| 27 runEditingTest(); | |
| 28 </script> | |
| 29 | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |