OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function debug(str) { | 4 function debug(str) { |
5 pre = document.getElementById('console'); | 5 pre = document.getElementById('console'); |
6 text = document.createTextNode(str + '\n'); | 6 text = document.createTextNode(str + '\n'); |
7 pre.appendChild(text); | 7 pre.appendChild(text); |
8 } | 8 } |
9 | 9 |
10 function runTests() { | 10 function runTests() { |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 | 13 |
14 if (document.compatMode == "BackCompat") | 14 if (document.compatMode == "BackCompat") |
15 debug('SUCCESS') | 15 debug('SUCCESS') |
16 else | 16 else |
17 debug('FAILURE') | 17 debug('FAILURE') |
18 } | 18 } |
19 | 19 |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 <body onload="runTests();"> | 22 <body onload="runTests();"> |
23 This tests that compatMode returns 'BackCompat' when we are in quirk mode. If th
e test is sucessful, the text below should say "SUCCESS". | 23 This tests that compatMode returns 'BackCompat' when we are in quirk mode. If th
e test is successful, the text below should say "SUCCESS". |
24 <pre id="console"> | 24 <pre id="console"> |
25 </pre> | 25 </pre> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |