Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / title-set.html
blob19a8dec7606eb45641e4c46b5d11400425b46ae0
1 <html>
2 <head>
3 <script>
4 function print(message) {
5 var paragraph = document.createElement("p");
6 paragraph.appendChild(document.createTextNode(message));
7 document.getElementById("console").appendChild(paragraph);
10 function test() {
11 if (window.testRunner) {
12 window.testRunner.dumpAsText();
15 document.title = "test";
16 if (document.title == "test") {
17 print("passed");
18 } else {
19 print("failed");
22 </script>
23 </head>
24 <body onload="test()">
25 <p>Tests: setting 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>