Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range-insertNode-crash.html
blob9ae2e84738901c5d4da4c2f8493dcbef745dcc84
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 function log(msg)
7 document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
10 function runTests()
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var r = document.createRange();
16 try {
17 r.insertNode(r);
18 } catch(e) {
21 log('PASS: No crash.');
23 </script>
24 </head>
25 <body onload="runTests();">
26 <p>This tests that we don't crash when passing null to Range.insertNode(). (rdar://problem/5488478)</p>
27 <pre id="console"></pre>
28 </body>
29 </html>