| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> | 4 <script src="../assert_selection.js"></script> |
| 5 <script> | 5 <script> |
| 6 test(() => assert_selection( | 6 test(() => assert_selection( |
| 7 [ | 7 [ |
| 8 '<div contenteditable>', | 8 '<div contenteditable>', |
| 9 '<pre>', | 9 '<pre>', |
| 10 '^hello\n\nworld\n\nwebkit\n|', | 10 '^hello\n\nworld\n\nwebkit\n|', |
| 11 '</pre>', | 11 '</pre>', |
| 12 '</div>', | 12 '</div>', |
| 13 ].join(''), | 13 ].join(''), |
| 14 'formatBlock h3', | 14 'formatBlock h3', |
| 15 [ | 15 [ |
| 16 '<div contenteditable>', | 16 '<div contenteditable>', |
| 17 '<h3>', | 17 '<h3>', |
| 18 'hello<br>\nworld<br>\nwebkit|', | 18 'hello<br>\nworld<br>\nwebkit', |
| 19 '</h3>', | 19 '</h3>|', |
| 20 '</div>', | 20 '</div>', |
| 21 ].join('')), | 21 ].join('')), |
| 22 'formatBlock on all contents with H3'); | 22 'formatBlock on all contents with H3'); |
| 23 | 23 |
| 24 test(() => assert_selection( | 24 test(() => assert_selection( |
| 25 [ | 25 [ |
| 26 '<div contenteditable>', | 26 '<div contenteditable>', |
| 27 '<pre>', | 27 '<pre>', |
| 28 '^hello\n\nworld\n\n|webkit\n', | 28 '^hello\n\nworld\n\n|webkit\n', |
| 29 '</pre>', | 29 '</pre>', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 '<div contenteditable>', | 44 '<div contenteditable>', |
| 45 '<pre>', | 45 '<pre>', |
| 46 'hello\n^\nworld\n\nwebkit\n|', | 46 'hello\n^\nworld\n\nwebkit\n|', |
| 47 '</pre>', | 47 '</pre>', |
| 48 '</div>', | 48 '</div>', |
| 49 ].join(''), | 49 ].join(''), |
| 50 'formatBlock h3', | 50 'formatBlock h3', |
| 51 [ | 51 [ |
| 52 '<div contenteditable>', | 52 '<div contenteditable>', |
| 53 '<pre>', | 53 '<pre>', |
| 54 'hello\n<h3>\nworld\nwebkit|</h3>', | 54 'hello\n<h3>\nworld\nwebkit</h3>|', |
| 55 '</pre>', | 55 '</pre>', |
| 56 '</div>', | 56 '</div>', |
| 57 ].join('')), | 57 ].join('')), |
| 58 'formatBlock all but the first paragraph with H3'); | 58 'formatBlock all but the first paragraph with H3'); |
| 59 </script> | 59 </script> |
| OLD | NEW |