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