S027: isTypeSupported registry check, endOfStream error reaches the media element, WPT runner fixes, tools rows, hand-over

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-12 16:44:13 -06:00
commit c2b60380be

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Runs a subset of WPT media-source/ in Nacre and prints pass counts (S027). Offline after the first run.
# - fetches web-platform-tests at $WPT_REV (sparse: media-source, resources, common) into target/wpt once
# - fetches web-platform-tests at $WPT_REV (sparse: media-source, media, resources, common) into target/wpt once
# - serves it on 127.0.0.1:$WPT_PORT (tests/wpt-mse/server.py) with our testharnessreport.js
# - runs tests/wpt-mse/driver.html in a hidden smoke run (tools/smoke.sh): every test in an iframe, $WPT_TIMEOUT s each
# - writes <outdir>/wpt/results.json and prints per-file and total subtest pass counts
@ -17,9 +17,9 @@ out=${1:-$root/target/smoke/wpt-mse-$(date +%H%M%S)}
shift || true
mkdir -p "$out/wpt"
if [ ! -d "$wpt/media-source" ]; then
git clone --filter=blob:none --no-checkout https://github.com/web-platform-tests/wpt.git "$wpt"
git -C "$wpt" sparse-checkout set media-source resources common
if [ ! -d "$wpt/media" ]; then
[ -d "$wpt/.git" ] || git clone --filter=blob:none --no-checkout https://github.com/web-platform-tests/wpt.git "$wpt"
git -C "$wpt" sparse-checkout set media-source media resources common
git -C "$wpt" fetch --depth 1 origin "$rev"
git -C "$wpt" checkout -q "$rev"
fi
@ -37,7 +37,7 @@ server=$!
trap 'kill $server 2>/dev/null' EXIT
rm -f "$out/wpt/results.json"
timeout_each=${WPT_TIMEOUT:-40}
timeout_each=${WPT_TIMEOUT:-75}
cat >"$out/wpt/wpt.txt" <<SCRIPT
# Generated by tools/wpt-mse.sh
wait 2