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 range = document.createRange(); | 8 var range = document.createRange(); |
9 var noNode = {}; | 9 var noNode = {}; |
10 var noRange = document.body; | 10 var noRange = document.body; |
11 [ | 11 [ |
12 "compareBoundaryPoints(0, noRange)", | 12 "compareBoundaryPoints(0, noRange)", |
13 "compareNode(noNode)", | |
14 "comparePoint(noNode, 0)", | 13 "comparePoint(noNode, 0)", |
15 "insertNode(noNode)", | 14 "insertNode(noNode)", |
16 "intersectsNode(noNode)", | 15 "intersectsNode(noNode)", |
17 "isPointInRange(noNode, 0)", | 16 "isPointInRange(noNode, 0)", |
18 "selectNode(noNode)", | 17 "selectNode(noNode)", |
19 "selectNodeContents(noNode)", | 18 "selectNodeContents(noNode)", |
20 "setEnd(noNode, 0)", | 19 "setEnd(noNode, 0)", |
21 "setEndAfter(noNode)", | 20 "setEndAfter(noNode)", |
22 "setEndBefore(noNode)", | 21 "setEndBefore(noNode)", |
23 "setStart(noNode, 0)", | 22 "setStart(noNode, 0)", |
24 "setStartAfter(noNode)", | 23 "setStartAfter(noNode)", |
25 "setStartBefore(noNode)", | 24 "setStartBefore(noNode)", |
26 "surroundContents(noNode)" | 25 "surroundContents(noNode)" |
27 ].forEach(function(expr) | 26 ].forEach(function(expr) |
28 { | 27 { |
29 shouldThrow("range." + expr); | 28 shouldThrow("range." + expr); |
30 }); | 29 }); |
31 </script> | 30 </script> |
32 </body> | 31 </body> |
33 </html> | 32 </html> |
OLD | NEW |