Skip to content

Commit 8f6550a

Browse files
committed
Remove largely duplicate test case by merging
1 parent a92b899 commit 8f6550a

File tree

2 files changed

+3
-54
lines changed

2 files changed

+3
-54
lines changed

plugins/image-prioritizer/tests/test-cases/picture-element-with-crossorigin-and-referrerpolicy.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

plugins/image-prioritizer/tests/test-cases/picture-element-with-lcp-image-and-fully-populated-sample-data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static function () use ( $breakpoint_max_widths ) {
2828
<body>
2929
<picture>
3030
<source type="image/avif" srcset="https://example.com/foo-300x225.avif 300w, https://example.com/foo-1024x768.avif 1024w, https://example.com/foo-768x576.avif 768w, https://example.com/foo-1536x1152.avif 1536w, https://example.com/foo-2048x1536.avif 2048w" sizes="(max-width: 600px) 480px, 800px">
31-
<img fetchpriority="high" decoding="async" width="1200" height="800" src="https://example.com/foo.jpg" alt="Foo" srcset="https://example.com/foo-300x225.jpg 300w, https://example.com/foo-1024x768.jpg 1024w, https://example.com/foo-768x576.jpg 768w, https://example.com/foo-1536x1152.jpg 1536w, https://example.com/foo-2048x1536.jpg 2048w" sizes="(max-width: 600px) 480px, 800px">
31+
<img fetchpriority="high" decoding="async" width="1200" height="800" src="https://example.com/foo.jpg" alt="Foo" srcset="https://example.com/foo-300x225.jpg 300w, https://example.com/foo-1024x768.jpg 1024w, https://example.com/foo-768x576.jpg 768w, https://example.com/foo-1536x1152.jpg 1536w, https://example.com/foo-2048x1536.jpg 2048w" sizes="(max-width: 600px) 480px, 800px" crossorigin="anonymous" referrerpolicy="no-referrer">
3232
</picture>
3333
</body>
3434
</html>
@@ -38,12 +38,12 @@ static function () use ( $breakpoint_max_widths ) {
3838
<head>
3939
<meta charset="utf-8">
4040
<title>...</title>
41-
<link data-od-added-tag rel="preload" fetchpriority="high" as="image" imagesrcset="https://example.com/foo-300x225.avif 300w, https://example.com/foo-1024x768.avif 1024w, https://example.com/foo-768x576.avif 768w, https://example.com/foo-1536x1152.avif 1536w, https://example.com/foo-2048x1536.avif 2048w" imagesizes="(max-width: 600px) 480px, 800px" type="image/avif" media="screen">
41+
<link data-od-added-tag rel="preload" fetchpriority="high" as="image" imagesrcset="https://example.com/foo-300x225.avif 300w, https://example.com/foo-1024x768.avif 1024w, https://example.com/foo-768x576.avif 768w, https://example.com/foo-1536x1152.avif 1536w, https://example.com/foo-2048x1536.avif 2048w" imagesizes="(max-width: 600px) 480px, 800px" type="image/avif" crossorigin="anonymous" referrerpolicy="no-referrer" media="screen">
4242
</head>
4343
<body>
4444
<picture>
4545
<source type="image/avif" srcset="https://example.com/foo-300x225.avif 300w, https://example.com/foo-1024x768.avif 1024w, https://example.com/foo-768x576.avif 768w, https://example.com/foo-1536x1152.avif 1536w, https://example.com/foo-2048x1536.avif 2048w" sizes="(max-width: 600px) 480px, 800px">
46-
<img data-od-fetchpriority-already-added fetchpriority="high" decoding="async" width="1200" height="800" src="https://example.com/foo.jpg" alt="Foo" srcset="https://example.com/foo-300x225.jpg 300w, https://example.com/foo-1024x768.jpg 1024w, https://example.com/foo-768x576.jpg 768w, https://example.com/foo-1536x1152.jpg 1536w, https://example.com/foo-2048x1536.jpg 2048w" sizes="(max-width: 600px) 480px, 800px">
46+
<img data-od-fetchpriority-already-added fetchpriority="high" decoding="async" width="1200" height="800" src="https://example.com/foo.jpg" alt="Foo" srcset="https://example.com/foo-300x225.jpg 300w, https://example.com/foo-1024x768.jpg 1024w, https://example.com/foo-768x576.jpg 768w, https://example.com/foo-1536x1152.jpg 1536w, https://example.com/foo-2048x1536.jpg 2048w" sizes="(max-width: 600px) 480px, 800px" crossorigin="anonymous" referrerpolicy="no-referrer">
4747
</picture>
4848
</body>
4949
</html>

0 commit comments

Comments
 (0)