Skip to content

Commit

Permalink
HTML: <img>'s historical progress events
Browse files Browse the repository at this point in the history
For whatwg/html#4842.

Co-Authored-By: Philip Jägenstedt <philip@foolip.org>
  • Loading branch information
2 people authored and natechapin committed Aug 23, 2019
1 parent ca7d4f9 commit 444491f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
async_test(t => {
const img = new Image();
t.add_cleanup(() => img.remove());
img.onloadstart = img.onprogress = img.onloadend = t.unreached_func("progress event fired");
img.onload = t.step_func_done(e => {
assert_true(e instanceof Event);
assert_false(e instanceof ProgressEvent);
});
img.src = "/images/rrgg-256x256.png";
document.body.append(img);
}, "<img> does not support ProgressEvent or loadstart/progress/loadend");

test(t => {
assert_equals(document.body.onloadend, undefined);
assert_equals(window.onloadend, undefined);
}, "onloadend is not exposed");

0 comments on commit 444491f

Please sign in to comment.