| 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 '<div contenteditable id="div">foo\n<div>bar</div></div>', | 7 '<div contenteditable id="div">foo\n<div>bar</div></div>', |
| 8 selection => { | 8 selection => { |
| 9 var div = selection.document.getElementById("div"); | 9 var div = selection.document.getElementById("div"); |
| 10 var text = div.firstChild; | 10 var text = div.firstChild; |
| 11 selection.collapse(text, text.length); | 11 selection.collapse(text, text.length); |
| 12 }, | 12 }, |
| 13 '<div contenteditable id="div">foo|\n<div>bar</div></div>'), | 13 '<div contenteditable id="div">foo\n|<div>bar</div></div>'), |
| 14 'Visible position creation in unrenderer space after renderer text.'); | 14 'Visible position creation in unrenderer space after renderer text.'); |
| 15 </script> | 15 </script> |
| OLD | NEW |