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(() => {testobject.done();}, 0); | |
|
Bernhard Bauer
2017/04/18 15:27:02
For readability, move the done() call onto the nex
George Joseph
2017/04/18 15:33:40
Done.
| |
| 12 } | |
| 13 function errorHandler() { | |
| 14 assert_unreached("Error event received"); | |
| 15 }; | |
| 16 </script> | |
| 17 </body> | |
| 18 </html> | |
| OLD | NEW |