OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 p.li { | 4 p.li { |
5 position: relative; | 5 position: relative; |
6 } | 6 } |
7 </style> | 7 </style> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <div id="container"> | 10 <div id="container"> |
(...skipping 16 matching lines...) Expand all Loading... |
27 var range = document.createRange(); | 27 var range = document.createRange(); |
28 range.setStart($('e5'), 1); | 28 range.setStart($('e5'), 1); |
29 var selection = window.getSelection(); | 29 var selection = window.getSelection(); |
30 selection.removeAllRanges(); | 30 selection.removeAllRanges(); |
31 selection.addRange(range); | 31 selection.addRange(range); |
32 document.execCommand('Delete', true); | 32 document.execCommand('Delete', true); |
33 shouldBe('document.querySelectorAll("p.li").length', '5'); | 33 shouldBe('document.querySelectorAll("p.li").length', '5'); |
34 if (window.testRunner) | 34 if (window.testRunner) |
35 $('container').outerHTML = ''; | 35 $('container').outerHTML = ''; |
36 </script> | 36 </script> |
37 <script src="../../fast/js/resources/js-test-post.js"></script> | |
38 </body> | 37 </body> |
39 </html> | 38 </html> |
OLD | NEW |