OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <div id="container"> | 8 <div id="container"> |
9 <div id="container1"><div id="host1"></div></div> | 9 <div id="container1"><div id="host1"></div></div> |
10 <div id="container2"><div id="host2"></div></div> | 10 <div id="container2"><div id="host2"></div></div> |
(...skipping 29 matching lines...) Expand all Loading... |
40 debug('In this case, the anchor node of the selection should also become be the
parent element of the removed element (container).'); | 40 debug('In this case, the anchor node of the selection should also become be the
parent element of the removed element (container).'); |
41 eventSender.mouseMoveTo(target2.offsetLeft + 2, target2.offsetTop + target2.offs
etHeight / 2); | 41 eventSender.mouseMoveTo(target2.offsetLeft + 2, target2.offsetTop + target2.offs
etHeight / 2); |
42 eventSender.mouseDown(); | 42 eventSender.mouseDown(); |
43 eventSender.mouseMoveTo(target2.offsetLeft + target2.offsetWidth - 2, target2.of
fsetTop + target2.offsetHeight / 2); | 43 eventSender.mouseMoveTo(target2.offsetLeft + target2.offsetWidth - 2, target2.of
fsetTop + target2.offsetHeight / 2); |
44 eventSender.mouseUp(); | 44 eventSender.mouseUp(); |
45 container.removeChild(container2); | 45 container.removeChild(container2); |
46 shouldBe('window.getSelection().anchorNode', 'container'); | 46 shouldBe('window.getSelection().anchorNode', 'container'); |
47 debug(''); | 47 debug(''); |
48 </script> | 48 </script> |
49 | 49 |
50 <script src="../../js/resources/js-test-post.js"></script> | |
51 </body> | 50 </body> |
52 | 51 |
53 </html> | 52 </html> |
OLD | NEW |