From 95a5477990c47e93fafcbee9dbcd4ad7a74f23ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 14 Sep 2021 18:53:30 +0000 Subject: [PATCH] Bug 1730709 - Tweak some lazy-load tests to not share URLs. r=nika Since that can make them spuriously not be lazy, depending on cache behavior. Differential Revision: https://phabricator.services.mozilla.com/D125565 --- .../image-loading-lazy-negative-margin.html.ini | 6 ------ .../image-loading-lazy-below-viewport-dynamic.html | 2 +- .../image-loading-lazy-in-viewport-dynamic.html | 2 +- .../image-loading-lazy-negative-margin.html | 2 +- .../image-loading-lazy-relevant-mutations.html | 8 ++++---- .../image-loading-lazy-slow-aspect-ratio.html | 4 ++-- .../the-img-element/image-loading-lazy-slow.html | 4 ++-- .../the-img-element/image-loading-lazy-to-eager.html | 4 ++-- .../resources/image-loading-lazy-below-viewport.html | 2 +- 9 files changed, 14 insertions(+), 20 deletions(-) delete mode 100644 testing/web-platform/meta/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html.ini diff --git a/testing/web-platform/meta/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html.ini b/testing/web-platform/meta/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html.ini deleted file mode 100644 index 9c7d005fe2a8a..0000000000000 --- a/testing/web-platform/meta/html/semantics/embedded-content/the-img-element/image-loading-lazy-negative-margin.html.ini +++ /dev/null @@ -1,6 +0,0 @@ -[image-loading-lazy-negative-margin.html] - [A loading=lazy image that is pulled into an `overflow: hidden` area by a negative margin will not load because IntersectionObserver sees it as non-intersecting] - expected: - if fission and (os == "linux") and debug: [FAIL, PASS] - if fission and (os == "linux") and not debug: [FAIL, PASS] - if fission and (os == "win"): FAIL diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html index 7fc2c74214739..78f18f0c23388 100644 --- a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html @@ -34,7 +34,7 @@
- - diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html index a972100528360..fac2c2e8f742b 100644 --- a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-slow.html @@ -14,9 +14,9 @@ loaded = true; target.src = ""; requestAnimationFrame(() => requestAnimationFrame(() => { - target.src = "resources/image.png?pipe=trickle(d2)"; + target.src = "resources/image.png?loading-lazy-slow&pipe=trickle(d2)"; takeScreenshot(); })); }; - target.src = "resources/image.png"; + target.src = "resources/image.png?loading-lazy-slow"; diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html index f74cafb106947..6246063981880 100644 --- a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html @@ -47,9 +47,9 @@
diff --git a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html index 486aeb0f24f48..f25bd6f4d09fb 100644 --- a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html +++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/resources/image-loading-lazy-below-viewport.html @@ -1,7 +1,7 @@
- +