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

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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698