<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p>This page tests that the document function open() can be overwritten with a user provided function. If the test passes, you'll see PASS messages below.</p>
<pre id="console"></pre>
<script>

document.open = function() {
    debug("PASS: document.open was overwritten.");
}

document.open();

if (this.testRunner)
    testRunner.dumpAsText();
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>
