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:
parent
62718f3521
commit
c2b60380be
1 changed files with 206 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue