Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLHtmlElement / set-version.html
blob44d230f45d53f0fe40d448422368197f4a70a09d
1 <html version="1">
2 <body>
3 <p>
4 This tests to make sure that HTMLHtmlElement::version settable.</p>
5 You should see 2 lines with "SUCCESS" below:
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function checkExpected(actual, expected)
12 if (actual != expected)
13 document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>");
14 else
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);
22 </script>
23 </body>
24 </html>