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