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