initial commit

This commit is contained in:
2026-09-12 14:29:44 +02:00
commit b65af3aae7
14 changed files with 1746 additions and 0 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Screenshot the harness with headless Firefox.
# tests/shot.sh [output.png] [width,height] [#hash]
# A dedicated profile is used so it never collides with the running browser.
set -eu
cd "$(dirname "$0")"
out=${1:-shot.png}
size=${2:-1600,1000}
hash=${3:-}
profile=${TMPDIR:-/tmp}/pgt-ff-profile
mkdir -p "$profile"
timeout 120 firefox --headless --no-remote --profile "$profile" \
--screenshot "$PWD/$out" --window-size "$size" \
"file://$PWD/harness.html$hash" >/dev/null 2>&1
echo "$PWD/$out"