| <script type="text/javascript"> |
| function print(message) { |
| var paragraph = document.createElement("p"); |
| paragraph.appendChild(document.createTextNode(message)); |
| document.getElementById("console").appendChild(paragraph); |
| var len = document.URL.length; |
| var file = document.URL.substring(len - 11); |
| if (window.layoutTestController) { |
| window.layoutTestController.dumpAsText(); |
| var origURL = document.URL; |
| document.URL = origURL + '#testAnchor'; |
| var newURL = document.URL; |
| <p>Tests: getting and setting HTMLDocument::url<br> |
| (Setting should do nothing since URL is readonly)</p> |
| <p>Success message: passed</p> |
| <p>Failure message: failed</p> |
| <a name='testAnchor'></A> |