OLD | NEW |
(Empty) | |
| 1 START_HTML_DART_TEST |
| 2 { |
| 3 "scripts": [ ], |
| 4 "expectedMessages": ["hest", "fisk"] |
| 5 } |
| 6 END_HTML_DART_TEST |
| 7 <html> |
| 8 <head> |
| 9 <script>window.parent.dispatchEvent(new Event('detect_errors'));</script> |
| 10 <title>Simple HTML test</title> |
| 11 <script>//throw "no I won't";</script> |
| 12 </head><body> |
| 13 <h1>This is Bill's test</h1> |
| 14 <script> |
| 15 //throw "yes i can"; |
| 16 window.postMessage('fisk', '*'); |
| 17 |
| 18 window.postMessage('ged', '*'); |
| 19 window.postMessage('fisk', '*'); |
| 20 |
| 21 function delayed() { |
| 22 a = new Object(); |
| 23 parent.postMessage('barfoofoo', '*'); |
| 24 // a.b = c; |
| 25 // throw "hesse error"; |
| 26 window.postMessage('hest', '*'); |
| 27 } |
| 28 setTimeout(delayed, 5000); |
| 29 |
| 30 |
| 31 </script> |
| 32 </body> |
| 33 </html> |
OLD | NEW |