Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / importNode-null.html
blob485a8be1350644f58ffa97262d8f54d457a7b911
1 <html>
2 <head>
3 <script>
4 function print(message, color)
6 var paragraph = document.createElement("div");
7 paragraph.appendChild(document.createTextNode(message));
8 paragraph.style.fontFamily = "monospace";
9 if (color)
10 paragraph.style.color = color;
11 document.getElementById("console").appendChild(paragraph);
14 function test()
16 if (window.testRunner)
17 testRunner.dumpAsText();
19 try {
20 document.importNode(null);
21 } catch(e) {
22 print("caught exception: " + e);
23 } finally {
24 print("PASS: importNode(null) didn't crash", "green");
27 </script>
28 </head>
29 <body onload="test();">
30 <p>This page tests calling document.importNode(null). If it passes, you'll
31 see a "PASS" message below.</p>
32 <hr>
33 <div id='console'></div>
34 </body>
35 </html>