<html>
<head>
<SCRIPT>
if (window.testRunner)
testRunner.dumpAsText();
document.write("<title>");
document.title = "Property";
document.write("Written</title>");
function test()
{
var expected = "PropertyWritten";
if (document.title == expected)
document.getElementById("console").innerHTML = "PASS";
else
document.getElementById("console").innerHTML = ("FAIL:" + document.title + "!=" + expected);
}
</SCRIPT>
</head>
<body onload="test()">
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=25567">Bug 25567</a></p>
<p>
Test if document.title is given from both DOM and document.write() without any crash.
</p>
<pre id="console"></pre>
</body>
</html>