Files
rust_browser/tests/wpt_harness.rs
Zachary D. Rowitsch 02cf8fd55e Add pixel-based reftest comparison and parallel WPT execution to promote 955 tests
Reftests now fall back to pixel comparison when layout-tree text comparison
fails. Both test and reference HTML are rasterized to 800x600 pixel buffers
and compared per-pixel with a channel tolerance of 2. This handles the
common WPT pattern where tests use different CSS techniques (borders vs
backgrounds) to achieve the same visual result.

Test execution is parallelized using std::thread::scope with progress
reporting every 100 tests. Suite runs in ~11 seconds across all 2,914 tests.

Also fixes missing CDATA stripping in extract_stylesheet_sources() used by
the Pipeline code path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 11:22:16 -05:00

5.1 KiB