4 function print(message
) {
5 var paragraph
= document
.createElement("p");
6 paragraph
.appendChild(document
.createTextNode(message
));
7 document
.getElementById("console").appendChild(paragraph
);
11 if (window
.testRunner
) {
12 window
.testRunner
.dumpAsText();
15 document
.title
= "test";
16 if (document
.title
== "test") {
24 <body onload=
"test()">
25 <p>Tests: setting HTMLDocument::title
</p>
27 <p>Success message: passed
</p>
28 <p>Failure message: failed
</p>