| <script src="../../resources/js-test-pre.js"></script> |
| <p>This page tests that the document functions write() and writeln() are cached. If the test passes, you'll see a PASS messages below.</p> |
| if (document.write === document.write) |
| debug("PASS: document.write is cached."); |
| debug("FAIL: document.write is not cached, but should be."); |
| if (document.writeln === document.writeln) |
| debug("PASS: document.writeln is cached."); |
| debug("FAIL: document.writeln is not cached, but should be."); |
| <script src="../../resources/js-test-post.js"></script> |