Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / title-get.html
blob88c88e7d633a4b41a34df08d004a16d8d13e1254
1 <html>
2 <head>
3 <title>test</title>
4 <script>
5 function print(message) {
6 var paragraph = document.createElement("p");
7 paragraph.appendChild(document.createTextNode(message));
8 document.getElementById("console").appendChild(paragraph);
11 function test() {
12 if (window.testRunner) {
13 window.testRunner.dumpAsText();
16 if (document.title == "test") {
17 print("passed");
18 } else {
19 print("failed");
22 </script>
23 </head>
24 <body onload="test()">
25 <p>Tests: getting HTMLDocument::title</p>
26 <p>Condition(s): </p>
27 <p>Success message: passed</p>
28 <p>Failure message: failed</p>
29 <hr>
30 <div id='console'/>
31 </body>
32 </html>