Skip to content

Commit e1d1414

Browse files
hjanuschkachromium-wpt-export-bot
authored andcommitted
Add JPEG XL interop-2026 coverage and decoder tests
Introduce automated interop WPT coverage and strengthen Blink JXL decoder unit tests for orientation, ICC/CMYK, and high bit-depth fixtures. Bug: 484065185 Change-Id: Ie5f33c477b616e03b3f3a21d006c6ae1da09294e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7572466 Commit-Queue: Philip Jägenstedt <foolip@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/main@{#1598968}
1 parent 2312a48 commit e1d1414

File tree

93 files changed

+763
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+763
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
3+
<img src="resources/3x3a_srgb_lossless.png">

jpegxl/alpha-modular-reftest.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/web-platform-tests/interop-jpegxl">
3+
<link rel="match" href="alpha-modular-reftest-ref.html">
4+
<meta name="assert" content="Alpha-bearing modular JPEG XL decode should match PNG reference output.">
5+
6+
<img src="resources/3x3a_srgb_lossless.jxl">

jpegxl/alpha-vardct.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<title>JPEG XL: alpha with VarDCT-oriented fixture</title>
3+
<link rel="help" href="https://github.com/web-platform-tests/interop-jpegxl">
4+
<meta name="assert" content="Decodes alpha-bearing fixture and verifies transparency exists.">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<script src="resources/helpers.js"></script>
8+
<script>
9+
10+
promise_test(async () => {
11+
const img = await loadImage('resources/conformance_alpha_nonpremultiplied.jxl');
12+
const px = samplePixel(img, 10, 10);
13+
assert_less_than(px[3], 255, 'fixture should include transparent pixels');
14+
}, 'Alpha channel is preserved for high bit-depth fixture.');
15+
16+
</script>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
3+
<img src="resources/basic.png">

jpegxl/basic-decode-reftest.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/web-platform-tests/interop-jpegxl">
3+
<link rel="match" href="basic-decode-reftest-ref.html">
4+
<meta name="assert" content="Minimal 1x1 JPEG XL decode should match PNG reference output.">
5+
6+
<img src="resources/basic.jxl">
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
3+
<img src="resources/conformance_sunset_logo.png">

jpegxl/bitdepth-10bpc-reftest.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/web-platform-tests/interop-jpegxl">
3+
<link rel="match" href="bitdepth-10bpc-reftest-ref.html">
4+
<meta name="assert" content="10-bit JPEG XL decode should match PNG reference output.">
5+
6+
<img src="resources/conformance_sunset_logo.jxl">
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
3+
<img src="resources/conformance_alpha_nonpremultiplied.png">

jpegxl/bitdepth-12bpc-reftest.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/web-platform-tests/interop-jpegxl">
3+
<link rel="match" href="bitdepth-12bpc-reftest-ref.html">
4+
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-100000">
5+
<meta name="assert" content="12-bit JPEG XL decode should match PNG reference output.">
6+
7+
<img src="resources/conformance_alpha_nonpremultiplied.jxl">
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
3+
<img src="resources/has_permutation.png">

0 commit comments

Comments
 (0)