| 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 // It is a minimized testcase for a Clusterfuzz test. See crbug.com/345373 | 6 // It is a minimized testcase for a Clusterfuzz test. See crbug.com/345373 |
| 7 test(() => assert_selection( | 7 test(() => assert_selection( |
| 8 [ | 8 [ |
| 9 '<style>', | 9 '<style>', |
| 10 '* { float:left; }', | 10 '* { float:left; }', |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 selection.document.execCommand('SelectAll'); | 38 selection.document.execCommand('SelectAll'); |
| 39 const range = selection.getRangeAt(0); | 39 const range = selection.getRangeAt(0); |
| 40 const insertedElement = selection.document.getElementById('r0'); | 40 const insertedElement = selection.document.getElementById('r0'); |
| 41 range.insertNode(insertedElement); | 41 range.insertNode(insertedElement); |
| 42 }, | 42 }, |
| 43 [ | 43 [ |
| 44 '<style>', | 44 '<style>', |
| 45 '* { float:left; }', | 45 '* { float:left; }', |
| 46 '.class0 { content: url(); }', | 46 '.class0 { content: url(); }', |
| 47 '</style>', | 47 '</style>', |
| 48 '<ul>', | 48 '<ul class="class0">', |
| 49 '<li id="r1"></li>', | 49 '<li id="r1">', |
| 50 '<li id="r0"></li>', |
| 51 '</li>', |
| 50 '</ul>', | 52 '</ul>', |
| 51 '<ol><li><br></li></ol>', | |
| 52 '^<hr>|', | 53 '^<hr>|', |
| 53 ].join(''))); | 54 ].join(''))); |
| 54 </script> | 55 </script> |
| OLD | NEW |