Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <body> | |
| 5 <object type="image/gif" data="resources/apple.gif" onload="loadHandler()" | |
| 6 onerror="errorHandler()"></object> | |
| 7 <script> | |
| 8 var testobject = async_test("crbug.com/445557:error events aren't dispatched" + | |
| 9 " for <object> elements"); | |
| 10 function loadHandler() { | |
| 11 setTimeout( () => {}, 0); | |
|
Bernhard Bauer
2017/04/18 14:46:39
This just posts an empty callback. You need to mov
George Joseph
2017/04/18 15:20:30
Done.
| |
| 12 testobject.done(); | |
| 13 } | |
| 14 function errorHandler() { | |
| 15 assert_unreached("Error event received "); | |
|
Bernhard Bauer
2017/04/18 14:46:39
Nit: No space before the end of the string.
George Joseph
2017/04/18 15:20:30
Done.
| |
| 16 }; | |
| 17 </script> | |
| 18 </body> | |
| 19 </html> | |
| OLD | NEW |