Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: <img>'s historical progress events #18499

Merged
merged 3 commits into from
Aug 19, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("no progress events supported");
annevk marked this conversation as resolved.
Show resolved Hide resolved
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");