OLD | NEW |
(Empty) | |
| 1 <!doctype HTML> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> |
| 5 <style> |
| 6 p { |
| 7 font-size: 20px; |
| 8 line-height: 22px; |
| 9 color: red; |
| 10 } |
| 11 </style> |
| 12 <div id="log"></div> |
| 13 <script> |
| 14 test(() => { |
| 15 assert_selection( |
| 16 '<div contenteditable="true"><h1>Heading 1:</h1>^<p>|paragraph was merge
d.</p></div>', |
| 17 'delete', |
| 18 '<div contenteditable="true"><h1>Heading 1:|paragraph was merged.</h1></
div>', |
| 19 'Make a paragraph into a heading'); |
| 20 assert_selection( |
| 21 '<div contenteditable="true"><pre>Preformatted text:</pre>^<p>|paragraph
was merged.</p></div>', |
| 22 'delete', |
| 23 '<div contenteditable="true"><pre>Preformatted text:|paragraph was merge
d.</pre></div>', |
| 24 'Make a paragraph into a pre'); |
| 25 assert_selection( |
| 26 '<div contenteditable="true"><ul><li>List Item:</li></ul>^<p>|paragraph
was merged.</p></div>', |
| 27 'delete', |
| 28 '<div contenteditable="true"><ul><li>List Item:|paragraph was merged.</l
i></ul></div>', |
| 29 'Make a paragraph into a list'); |
| 30 assert_selection( |
| 31 '<div contenteditable="true"><table><tbody><tr><td>Table:</td></tr></tbo
dy></table>^<p>|paragraph was merged.</p></div>', |
| 32 'delete', |
| 33 '<div contenteditable="true"><table><tbody><tr><td>Table:|paragraph was
merged.</td></tr></tbody></table></div>', |
| 34 'Make a paragraph into a table'); |
| 35 }, 'merge into a block by backspace'); |
| 36 </script> |
OLD | NEW |