OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="test" contenteditable> | 7 <div id="test" contenteditable> |
8 <p> hello<br> | 8 <p> hello<br> |
9 world.</p> | 9 world.</p> |
10 <blockquote><div>|<br></div></blockquote> | 10 <blockquote><div>|<br></div></blockquote> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 shouldBe('internals.rangeFromLocationAndLength(container, 0, 6).toArray()',
'[p.firstChild, 2, p.childNodes[2], 1]'); | 51 shouldBe('internals.rangeFromLocationAndLength(container, 0, 6).toArray()',
'[p.firstChild, 2, p.childNodes[2], 1]'); |
52 | 52 |
53 shouldBe('locationAndLengthFromRange(range(p.childNodes[2], 6, p, 3))', '[11
, 1]'); | 53 shouldBe('locationAndLengthFromRange(range(p.childNodes[2], 6, p, 3))', '[11
, 1]'); |
54 shouldBe('internals.rangeFromLocationAndLength(container, 11, 2).toArray()',
'[p.childNodes[2], 6, div, 0]'); | 54 shouldBe('internals.rangeFromLocationAndLength(container, 11, 2).toArray()',
'[p.childNodes[2], 6, div, 0]'); |
55 | 55 |
56 container.style.display = 'none'; | 56 container.style.display = 'none'; |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 </script> | 60 </script> |
61 <script src="../../fast/js/resources/js-test-post.js"></script> | |
62 </body> | 61 </body> |
63 </html> | 62 </html> |
OLD | NEW |