| 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 runTest() | 8 function runTest() |
| 9 { | 9 { |
| 10 var log = document.body.appendChild(document.createElement('div')); | 10 var log = document.body.appendChild(document.createElement('div')); |
| 11 log.write = function(msg, success) | 11 log.write = function(msg, success) |
| 12 { | 12 { |
| 13 this.appendChild(document.createElement('div')).textContent = msg + ': '
+ (success ? 'PASS' : 'FAIL'); | 13 this.appendChild(document.createElement('div')).textContent = msg + ': '
+ (success ? 'PASS' : 'FAIL'); |
| 14 } | 14 } |
| 15 | 15 |
| 16 log.write('window.internals object should be visible when running in DRT', !
!window.internals); | 16 log.write('window.internals object should be visible when running in DRT', !
!window.internals); |
| 17 } | 17 } |
| 18 | 18 |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <body onload="runTest()"> | 21 <body onload="runTest()"> |
| 22 </body> | 22 </body> |
| 23 </html> | 23 </html> |
| OLD | NEW |