blob: 19a8dec7606eb45641e4c46b5d11400425b46ae0 [file] [log] [blame]
<html>
<head>
<script>
function print(message) {
var paragraph = document.createElement("p");
paragraph.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(paragraph);
}
function test() {
if (window.testRunner) {
window.testRunner.dumpAsText();
}
document.title = "test";
if (document.title == "test") {
print("passed");
} else {
print("failed");
}
}
</script>
</head>
<body onload="test()">
<p>Tests: setting HTMLDocument::title</p>
<p>Condition(s): </p>
<p>Success message: passed</p>
<p>Failure message: failed</p>
<hr>
<div id='console'/>
</body>
</html>