4 <script src=
"../../../resources/js-test.js"></script>
8 var range
= document
.createRange();
10 var noRange
= document
.body
;
12 "compareBoundaryPoints(0, noRange)",
13 "comparePoint(noNode, 0)",
15 "intersectsNode(noNode)",
16 "isPointInRange(noNode, 0)",
18 "selectNodeContents(noNode)",
20 "setEndAfter(noNode)",
21 "setEndBefore(noNode)",
22 "setStart(noNode, 0)",
23 "setStartAfter(noNode)",
24 "setStartBefore(noNode)",
25 "surroundContents(noNode)"
26 ].forEach(function(expr
)
28 shouldThrow("range." + expr
);