From 7197d78ea35951313593e931641c8d08e15cbb1b Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Tue, 25 Feb 2025 15:59:17 -0500 Subject: [PATCH] Tests/LibWeb: Import a PNG and CICP related test I had to manually import the png file as the import script is unable to find resources from within the javascript code. --- .../expected/wpt-import/png/cicp-chunk.txt | 6 +++ .../Text/input/wpt-import/png/cicp-chunk.html | 40 ++++++++++++++++++ .../png/support/cicp-display-p3.png | Bin 0 -> 143 bytes 3 files changed, 46 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/wpt-import/png/cicp-chunk.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/png/cicp-chunk.html create mode 100644 Tests/LibWeb/Text/input/wpt-import/png/support/cicp-display-p3.png diff --git a/Tests/LibWeb/Text/expected/wpt-import/png/cicp-chunk.txt b/Tests/LibWeb/Text/expected/wpt-import/png/cicp-chunk.txt new file mode 100644 index 00000000000..019c787c346 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/png/cicp-chunk.txt @@ -0,0 +1,6 @@ +Harness status: OK + +Found 1 tests + +1 Pass +Pass test pixel values of a display-p3 PNG \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/png/cicp-chunk.html b/Tests/LibWeb/Text/input/wpt-import/png/cicp-chunk.html new file mode 100644 index 00000000000..8c937965b65 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/png/cicp-chunk.html @@ -0,0 +1,40 @@ + +PNG test: cICP chunk + + + + + + +

cICP chunk

+

test pixel values of a display-p3 PNG

+ +

Actual output:

+

FAIL (fallback content)

+ + + diff --git a/Tests/LibWeb/Text/input/wpt-import/png/support/cicp-display-p3.png b/Tests/LibWeb/Text/input/wpt-import/png/support/cicp-display-p3.png new file mode 100644 index 0000000000000000000000000000000000000000..dc5277bedd4c5a9789126e064bc95541d7972b9f GIT binary patch literal 143 zcmeAS@N?(olHy`uVBq!ia0y~yU`SzLU@+ofW?*2L`?{}(fq{V~+0!|IhnImdkNNR? z1_lP60G|+71_p-z|Nk4O&HVrW|D25+HyIch^gLZ0Ln2z=o;4I?VBla;*joR>e_=B_ r>x-4O;_WU<6FpRfI$_i&El$xr3~75r=E^cKFfe$!`njxgN@xNArA{gk literal 0 HcmV?d00001