Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/plugins/object-onload-placeholder.html |
| diff --git a/third_party/WebKit/LayoutTests/plugins/object-onload-placeholder.html b/third_party/WebKit/LayoutTests/plugins/object-onload-placeholder.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3f21235b2441560eb9c25095dbf12906668218e0 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/plugins/object-onload-placeholder.html |
| @@ -0,0 +1,18 @@ |
| +<html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<body> |
| +<object type="image/gif" data="resources/apple.gif" onload="loadHandler()" |
| + onerror="errorHandler()"></object> |
| +<script> |
| +var testobject = async_test("crbug.com/445557:error events aren't dispatched" + |
| + " for <object> elements"); |
| +function loadHandler() { |
| + 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.
|
| +} |
| +function errorHandler() { |
| + assert_unreached("Error event received"); |
| +}; |
| +</script> |
| +</body> |
| +</html> |