blob: 72ccb0a260cd41bef4ce656b5ee27159a002a414 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function log(msg)
{
document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
}
function runTests()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
var r = document.createRange();
try {
r.insertNode(r);
} catch(e) {
}
log('PASS: No crash.');
}
</script>
</head>
<body onload="runTests();">
<p>This tests that we don't crash when passing null to Range.insertNode(). (rdar://problem/5488478)</p>
<pre id="console"></pre>
</body>
</html>