OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>Range.intersectsNode</title> |
| 3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> |
| 4 <meta name=timeout content=long> |
| 5 <script src=../../../../resources/testharness.js></script> |
| 6 <script src=../../../../resources/testharnessreport.js></script> |
| 7 <div id=log></div> |
| 8 <script> |
| 9 test(function() { |
| 10 var r = document.createRange(); |
| 11 assert_throws(new TypeError(), function() { r.intersectsNode(); }); |
| 12 assert_throws(new TypeError(), function() { r.intersectsNode(null); }); |
| 13 assert_throws(new TypeError(), function() { r.intersectsNode(undefined); }); |
| 14 assert_throws(new TypeError(), function() { r.intersectsNode(42); }); |
| 15 assert_throws(new TypeError(), function() { r.intersectsNode("foo"); }); |
| 16 assert_throws(new TypeError(), function() { r.intersectsNode({}); }); |
| 17 r.detach(); |
| 18 assert_throws(new TypeError(), function() { r.intersectsNode(); }); |
| 19 assert_throws(new TypeError(), function() { r.intersectsNode(null); }); |
| 20 assert_throws(new TypeError(), function() { r.intersectsNode(undefined); }); |
| 21 assert_throws(new TypeError(), function() { r.intersectsNode(42); }); |
| 22 assert_throws(new TypeError(), function() { r.intersectsNode("foo"); }); |
| 23 assert_throws(new TypeError(), function() { r.intersectsNode({}); }); |
| 24 }, "Calling intersectsNode without an argument or with an invalid argument shoul
d throw a TypeError.") |
| 25 </script> |
OLD | NEW |