Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassCalling intersectsNode without an argument or with an invalid argument should throw a TypeError.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:11:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(null); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:12:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(undefined); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:13:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(42); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:14:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode("foo"); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:15:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode({}); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:16:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:18:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(null); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:19:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(undefined); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:20:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode(42); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:21:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode("foo"); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:22:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { r.intersectsNode({}); }")
    at Test.<anonymous> ( /dom/ranges/Range-intersectsNode-binding.html:23:3)