4 This tests to make sure that HTMLHtmlElement::version settable.
</p>
5 You should see
2 lines with
"SUCCESS" below:
8 testRunner
.dumpAsText();
10 function checkExpected(actual
, expected
)
12 if (actual
!= expected
)
13 document
.writeln("<p>FAILURE: expected \"" + expected
+ "\", actual \"" + actual
+ "\"</p>");
15 document
.writeln("<p>SUCCESS (value: \"" + actual
+ "\")</p>");
18 var htmlElement
= document
.getElementsByTagName("html")[0];
19 checkExpected(htmlElement
.version
, 1);
20 htmlElement
.version
= 2;
21 checkExpected(htmlElement
.version
, 2);