mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision fa41b43ac93bc2fdc2427a4378dc3754d483cdda
This commit is contained in:
parent
03a47c803c
commit
20d165ac2c
474 changed files with 6971 additions and 1378 deletions
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
x = new Image();
|
||||
x.loading = "auto";
|
||||
x.src = "resources/image.png?auto";
|
||||
x.onload = e => {
|
||||
t.step(function() {
|
||||
t.step_func_done();
|
||||
});
|
||||
};
|
||||
t.step_timeout(function() { t.done(); }, 2000);
|
||||
}, "loading=auto for disconnected image");
|
||||
|
||||
async_test(function(t) {
|
||||
x = new Image();
|
||||
x.loading = "lazy";
|
||||
x.src = "resources/image.png?lazy";
|
||||
x.onload = e => {
|
||||
t.step(function() {
|
||||
t.unreached_func("Disconnected image with loading=lazy should be loaded lazily.");
|
||||
});
|
||||
};
|
||||
t.step_timeout(function() { t.done(); }, 2000);
|
||||
}, "loading=lazy for disconnected image");
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue