| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 | 4 |
| 5 if (testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 | 7 |
| 8 function test(message, success) | 8 function test(message, success) |
| 9 { | 9 { |
| 10 var li = document.createElement("li"); | 10 var li = document.createElement("li"); |
| 11 var text = document.createTextNode(message + ': ' + (success ? '
PASS' : 'FAIL')); | 11 var text = document.createTextNode(message + ': ' + (success ? '
PASS' : 'FAIL')); |
| 12 li.appendChild(text); | 12 li.appendChild(text); |
| 13 document.getElementById("console").appendChild(li); | 13 document.getElementById("console").appendChild(li); |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 36 test('internals.userPreferredLanguages is mutable, and returns t
he same value passed to it', sameContents); | 36 test('internals.userPreferredLanguages is mutable, and returns t
he same value passed to it', sameContents); |
| 37 } | 37 } |
| 38 | 38 |
| 39 </script> | 39 </script> |
| 40 </head> | 40 </head> |
| 41 <body onload="runTest()"> | 41 <body onload="runTest()"> |
| 42 <p>This test verifies that internals.userPreferredLanguages returns a mu
table Array of the user's preferred languages.</p> | 42 <p>This test verifies that internals.userPreferredLanguages returns a mu
table Array of the user's preferred languages.</p> |
| 43 <ul id="console"></ul> | 43 <ul id="console"></ul> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |