blob: f9524ba7a94cd0c9a779cf749bc5dc16dea36853 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Test that Node.appendChild throws TypeError when a wrong type of argument is passed.</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
</head>
<body>
<script>
test(function() {
assert_throws_js(TypeError, function() { document.body.appendChild() })
assert_throws_js(TypeError, function() { document.body.appendChild(null) })
assert_throws_js(TypeError, function() { document.body.appendChild({'a':'b'}) })
})
</script>
</body>
</html>