Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / doctypes / doctype-at-end.html
1 <html>
2 <head>
3     <script>
4         if (window.testRunner)
5             testRunner.dumpAsText();
6
7         log = function(msg)
8         {
9             document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
10         }
11     
12         onload = function()
13         {
14             if (!document.doctype)
15                 log("PASS: a doctype at the end of the document was ignored.");
16             else
17                 log("FAIL: a doctype at the end of the document was not ignored.");
18         }
19     </script>
20 </head>
21 <body>
22     This tests the behavior of a Doctype at the end of the document.
23     <pre id="console"></pre>
24 </body>
25 </html>
26 <!DOCTYPE HTML>