Update web-platform-tests to revision e3698c7bb3c309df69134e9bc0a375f00535e226

This commit is contained in:
WPT Sync Bot 2020-07-07 08:19:56 +00:00
parent 1b38197812
commit e447ba9856
102 changed files with 1364 additions and 221 deletions

View file

@ -18,7 +18,7 @@
window.addEventListener("load", t.step_func(function() {
assert_false(has_window_loaded,
"The window.load() event should only fire once.");
"The window load event should only fire once.");
has_window_loaded = true;
}));
@ -26,7 +26,7 @@
assert_false(has_below_viewport_loaded,
"The in_viewport element should load only once.");
assert_true(has_window_loaded,
"The window.load() event should have fired before " +
"The window load event should have fired before " +
"below_viewport loaded.");
has_below_viewport_loaded = true;
});
@ -38,7 +38,7 @@
loading="lazy" onload="below_viewport_img_onload();">
<script>
assert_false(has_window_loaded,
"The window.load() event should not fire before " +
"The window load event should not fire before " +
"changing below_viewport to loading='eager'.");
document.getElementById("below_viewport").loading = 'eager';
</script>

View file

@ -20,13 +20,13 @@
assert_false(has_in_viewport_loaded,
"The in_viewport element should load only once.");
assert_true(has_window_loaded,
"The window.load() event should fire before in_viewport image loads.");
"The window load event should fire before in_viewport image loads.");
has_in_viewport_loaded = true;
});
window.addEventListener("load", t.step_func(function() {
assert_false(has_window_loaded,
"The window.load() event should only fire once.");
"The window load event should only fire once.");
has_window_loaded = true;
}));
</script>

View file

@ -20,7 +20,7 @@
window.addEventListener("load", t.step_func_done(function() {
assert_true(has_in_viewport_loaded, "The in_viewport element should have loaded before window.load().");
assert_false(has_window_loaded, "The window.load() event should only fire once.");
assert_false(has_window_loaded, "The window load event should only fire once.");
has_window_loaded = true;
}));
@ -37,7 +37,7 @@
<!--
This async script loads very slowly in order to ensure that, if the
below_viewport element has started loading, it has a chance to finish
loading before window.load() happens, so that the test will dependably fail
loading before window load event fires, so that the test will dependably fail
in that case instead of potentially passing depending on how long different
resource fetches take.
-->