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 testobject.done(); | |
| 12 } | |
| 13 function errorHandler() { | |
| 14 setTimeout(function () { | |
|
Bernhard Bauer
2017/04/18 10:08:02
I think the timeout is in the wrong place here. Yo
George Joseph
2017/04/18 14:18:45
Done.
| |
| 15 testobject.step(function() { | |
| 16 assert_true(false); | |
|
Bernhard Bauer
2017/04/18 10:08:02
I would use assert_unreached(<message>), as that c
George Joseph
2017/04/18 14:18:45
Done.
| |
| 17 }); | |
| 18 testobject.done(); | |
|
Bernhard Bauer
2017/04/18 10:08:02
This call is also unnecessary.
George Joseph
2017/04/18 14:18:45
Done.
| |
| 19 },0); | |
|
Bernhard Bauer
2017/04/18 10:08:02
Nit: space after comma.
George Joseph
2017/04/18 14:18:45
Done.
| |
| 20 }; | |
| 21 </script> | |
| 22 </body> | |
| 23 </html> | |
| OLD | NEW |