Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / dom-instanceof.html
blob1d76df7db65b36f1ee5b056c9cdc06b2cfd4d4b7
1 <html>
2 <head>
3 <title>DOM instanceof</title>
4 <script>
5 function print(message, color)
7 var paragraph = document.createElement("div");
8 paragraph.appendChild(document.createTextNode(message));
9 paragraph.style.fontFamily = "monospace";
10 if (color)
11 paragraph.style.color = color;
12 document.getElementById("console").appendChild(paragraph);
15 function test()
17 if (window.testRunner)
18 testRunner.dumpAsText();
20 if(document.getElementById("console") instanceof Element)
21 print("PASS", "green");
22 else
23 print("Failed", "red");
26 </script>
27 </head>
28 <body>
29 <p>This page tests to make sure instanceof operator for DOM nodes works properly.</p>
30 <p>If the test passes, you'll see a single 'PASS' message below.</p>
31 <hr>
33 <div id='console'></div>
35 <script>
36 test();
37 </script>
38 </body>
39 </html>