<html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
<!--
document.write('This should invoke document.write.');
</script>
document.write('This should not invoke document.write.');
</body>
</html>
<html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
<!--
document.write('This should invoke document.write.');
</script>
document.write('This should not invoke document.write.');
</body>
</html>