OLD | NEW |
(Empty) | |
| 1 <body> |
| 2 <script> |
| 3 if (window.testRunner) { |
| 4 testRunner.dumpAsText(); |
| 5 testRunner.waitUntilDone(); |
| 6 } |
| 7 |
| 8 onerror = function() { |
| 9 console.error('FAIL: window.onerror has been invoked'); |
| 10 if (window.testRunner) |
| 11 testRunner.notifyDone(); |
| 12 } |
| 13 |
| 14 var scriptElement = document.createElement('script'); |
| 15 scriptElement.src = 'ggg'; |
| 16 scriptElement.type = 'application/dart'; |
| 17 scriptElement.onerror = function() { |
| 18 console.log('PASS: scriptElement.onerror has been invoked'); |
| 19 if (window.testRunner) |
| 20 testRunner.notifyDone(); |
| 21 } |
| 22 |
| 23 document.body.appendChild(scriptElement); |
| 24 </script> |
| 25 </body> |
OLD | NEW |