OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 var selection = getSelection(); | 8 var selection = getSelection(); |
9 var node = document.body; | 9 var node = document.body; |
10 shouldThrow("selection.addRange()"); | 10 shouldThrow("selection.addRange()"); |
11 shouldThrow("selection.getRangeAt()"); | 11 shouldThrow("selection.getRangeAt()"); |
12 shouldThrow("selection.selectAllChildren()"); | 12 shouldThrow("selection.selectAllChildren()"); |
13 shouldThrow("selection.setBaseAndExtent()"); | 13 shouldThrow("selection.setBaseAndExtent()"); |
14 shouldThrow("selection.setBaseAndExtent(node)"); | 14 shouldThrow("selection.setBaseAndExtent(node)"); |
15 shouldThrow("selection.setBaseAndExtent(node, 0)"); | 15 shouldThrow("selection.setBaseAndExtent(node, 0)"); |
16 shouldThrow("selection.setBaseAndExtent(node, 0, node)"); | 16 shouldThrow("selection.setBaseAndExtent(node, 0, node)"); |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |