Skip to content

Commit 86897f6

Browse files
committed
Re-import images from WPT
https://bugs.webkit.org/show_bug.cgi?id=298800 rdar://160497656 Reviewed by Simon Fraser. Upstream commit: web-platform-tests/wpt@5aa642d * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.broken-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-colorSpaceConversion-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/images/100px-green-rect.svg: * LayoutTests/imported/w3c/web-platform-tests/images/META.yml: * LayoutTests/imported/w3c/web-platform-tests/images/README.md: Added. * LayoutTests/imported/w3c/web-platform-tests/images/anim-tao.png: Renamed from LayoutTests/imported/w3c/web-platform-tests/images/anim-poster-gr.png. * LayoutTests/imported/w3c/web-platform-tests/images/anim-tao.png.headers: Added. * LayoutTests/imported/w3c/web-platform-tests/images/animated-avif.avif: Added. * LayoutTests/imported/w3c/web-platform-tests/images/arrow-oriented-upright.jpg: Added. * LayoutTests/imported/w3c/web-platform-tests/images/blue-png-cachable.py: (main): * LayoutTests/imported/w3c/web-platform-tests/images/broken.png: * LayoutTests/imported/w3c/web-platform-tests/images/computer.jpg: Added. * LayoutTests/imported/w3c/web-platform-tests/images/green-100x50.png: * LayoutTests/imported/w3c/web-platform-tests/images/green.avif: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-100x50-alt.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-100x50.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-133x106.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-16x16.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-1x1.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-256x256.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-2x2.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/lcp-96x96.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/pattern-nosize.svg: Added. * LayoutTests/imported/w3c/web-platform-tests/images/pattern.webm: Added. * LayoutTests/imported/w3c/web-platform-tests/images/undecodable.png: Copied from LayoutTests/imported/w3c/web-platform-tests/images/broken.png. * LayoutTests/imported/w3c/web-platform-tests/images/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/images/webp-animated.webp: Added. * LayoutTests/imported/w3c/web-platform-tests/images/wide-gamut-pattern.png: Added. * LayoutTests/imported/w3c/web-platform-tests/images/wpt-logo/wpt-logo-darkblue-bg.svg: * LayoutTests/imported/w3c/web-platform-tests/images/wpt-logo/wpt-logo-lightblue-bg.svg: * LayoutTests/imported/w3c/web-platform-tests/images/wpt-logo/wpt-logo-orange-bg.svg: Canonical link: https://commits.webkit.org/299934@main
1 parent d4c256a commit 86897f6

34 files changed

+83
-39
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2d.pattern.image.broken
22
Actual output:
33

4-
FAIL Canvas test: 2d.pattern.image.broken assert_throws_dom: function "function() { ctx.createPattern(img, 'repeat'); }" did not throw
4+
PASS Canvas test: 2d.pattern.image.broken
55

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
FAIL createImageBitmap from a bitmap HTMLImageElement, and drawImage on the created ImageBitmap with colorSpaceConversion: none promise_test: Unhandled rejection with value: object "[object Event]"
3-
FAIL createImageBitmap from a Blob, and drawImage on the created ImageBitmap with colorSpaceConversion: none promise_test: Unhandled rejection with value: object "InvalidStateError: Cannot decode the data in the argument to createImageBitmap"
2+
FAIL createImageBitmap from a bitmap HTMLImageElement, and drawImage on the created ImageBitmap with colorSpaceConversion: none assert_approx_equals: Red channel of the pixel at (5, 5) expected 124 +/- 10 but got 255
3+
FAIL createImageBitmap from a Blob, and drawImage on the created ImageBitmap with colorSpaceConversion: none assert_approx_equals: Red channel of the pixel at (5, 5) expected 124 +/- 10 but got 255
44

LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ PASS createImageBitmap with an oversized canvas source.
8888
PASS createImageBitmap with an invalid OffscreenCanvas source.
8989
PASS createImageBitmap with an undecodable blob source.
9090
PASS createImageBitmap with a broken image source.
91-
FAIL createImageBitmap with an available but undecodable image source. promise_test: Unhandled rejection with value: object "[object Event]"
91+
FAIL createImageBitmap with an available but undecodable image source. assert_unreached: Should have rejected: undefined Reached unreachable code
9292
FAIL createImageBitmap with an available but zero height image source. assert_unreached: Should have rejected: undefined Reached unreachable code
9393
FAIL createImageBitmap with an available but zero width image source. assert_unreached: Should have rejected: undefined Reached unreachable code
9494
PASS createImageBitmap with a closed ImageBitmap.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2d.drawImage.broken
22

33

4-
FAIL OffscreenCanvas test: 2d.drawImage.broken assert_unreached: Should have rejected: The source image could not be decoded. Reached unreachable code
4+
PASS OffscreenCanvas test: 2d.drawImage.broken
55

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
FAIL 2d assert_unreached: Should have rejected: The source image could not be decoded. Reached unreachable code
2+
PASS 2d
33

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
suggested_reviewers:
2-
- zqzhang
3-
- gsnedders
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Largest contentful paint test images
2+
====================================
3+
4+
The images in this directory prefixed with `lcp-` are specifically intended to
5+
be used by tests where a largest-contentful-paint entry should be generated. As
6+
Chromium has implemented a contentfulness threshold of 0.05 bits per pixel,
7+
these images, when rendered at their natural dimensions, have a minimum content
8+
length, as shown in the table below:
9+
10+
File | Dimensions | Area (px^2) | Minimum content-length (bytes)
11+
----------------+------------+-------------|-------------------------------
12+
lcp-256x256.png | 256x256 | 65536 | 410
13+
lcp-133x106.png | 133x106 | 14098 | 89
14+
lcp-100x50.png | 100x50 | 5000 | 32
15+
lcp-96x96.png | 96x96 | 9216 | 58
16+
lcp-16x16.png | 16x16 | 256 | 2
17+
lcp-2x2.png | 2x2 | 4 | 1
18+
lcp-1x1.png | 1x1 | 1 | 1
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Timing-Allow-Origin: *
2+

0 commit comments

Comments
 (0)