3 <title>URL test
</title>
4 <script type=
"text/javascript">
5 function print(message
) {
6 var paragraph
= document
.createElement("p");
7 paragraph
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(paragraph
);
13 var len
= document
.URL
.length
;
14 var file
= document
.URL
.substring(len
- 11);
16 if (file
=="getset.html")
22 if (window
.testRunner
) {
23 window
.testRunner
.dumpAsText();
25 var origURL
= document
.URL
;
27 document
.URL
= origURL
+ '#testAnchor';
29 var newURL
= document
.URL
;
31 if (newURL
!=origURL
) {
40 <body onload=
"test()">
41 <p>Tests: getting and setting HTMLDocument::url
<br>
42 (Setting should do nothing since URL is readonly)
</p>
44 <p>Success message: passed
</p>
45 <p>Failure message: failed
</p>
48 <a name='testAnchor'
></A>