6 testRunner
.dumpAsText();
8 var oldValue
= document
.documentURI
;
9 document
.documentURI
= 'http://fail.example.com/';
10 if (document
.documentURI
=== 'http://fail.example.com/')
11 alert("FAIL: document.documentURI should be read only.");
12 else if (document
.documentURI
=== oldValue
)
13 alert("PASS: document.documentURI is read only.");
15 alert("FAIL: document.documentURI is weird: " + document
.documentURI
);
20 This test ensures that document.documentURI is a readonly attribute.
21 It passes if a
"PASS" alert is displayed.