mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Automatic update from web-platform-tests Remove .tentative mark from preload-imagesrcset tests Now that the HTML spec change (https://github.com/whatwg/html/pull/4048) is landed, let's remove the .tentative label from the tests. Bug: 813452 Change-Id: Id92373c8b78b537b6020c6aa8e05765e2c075834 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542738 Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Reviewed-by: Dominic Farolino <domfarolino@gmail.com> Cr-Commit-Position: refs/heads/master@{#645156} -- wpt-commits: 835b267c69bfddefa374083edf408f1015145e27 wpt-pr: 16127 --HG-- rename : testing/web-platform/tests/preload/dynamic-adding-preload-imagesrcset.tentative.html => testing/web-platform/tests/preload/dynamic-adding-preload-imagesrcset.html rename : testing/web-platform/tests/preload/link-header-preload-srcset.tentative.html.headers => testing/web-platform/tests/preload/link-header-preload-imagesrcset.html.headers
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/preload/resources/preload_helper.js"></script>
|
|
<script>
|
|
var t = async_test('Makes sure that a dynamically added preload with imagesrcset works');
|
|
</script>
|
|
<body>
|
|
<script>
|
|
t.step(function() {
|
|
verifyPreloadAndRTSupport();
|
|
var link = document.createElement("link");
|
|
link.as = "image";
|
|
link.rel = "preload";
|
|
link.href = "resources/square.png?default";
|
|
link.imageSrcset = "resources/square.png?200 200w, resources/square.png?400 400w, resources/square.png?800 800w";
|
|
link.imageSizes = "400px";
|
|
link.onload = t.step_func(function() {
|
|
t.step_timeout(function() {
|
|
verifyNumberOfResourceTimingEntries("resources/square.png?default", 0);
|
|
verifyNumberOfResourceTimingEntries("resources/square.png?200", 0);
|
|
verifyNumberOfResourceTimingEntries("resources/square.png?400", 1);
|
|
verifyNumberOfResourceTimingEntries("resources/square.png?800", 0);
|
|
t.done();
|
|
}, 0);
|
|
});
|
|
document.body.appendChild(link);
|
|
});
|
|
</script>
|
|
</body>
|