Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/object-onload-placeholder.html

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698