推进 INI 面板 control page entry

This commit is contained in:
2026-06-14 23:02:50 +08:00
parent 27d2316f78
commit 2844fd25c3
6 changed files with 408 additions and 0 deletions

View File

@@ -61,7 +61,9 @@ fi
PORT="$(cat "$PORT_FILE")"
URL="http://127.0.0.1:$PORT/tests/browser/ini_panel_smoke.html"
CONTROL_URL="http://127.0.0.1:$PORT/tests/browser/ini_panel_control_page_smoke.html"
OUT="$TMP_DIR/chromium.out"
CONTROL_OUT="$TMP_DIR/chromium-control.out"
"$CHROMIUM" \
--headless=new \
@@ -79,3 +81,20 @@ if ! grep -Fq "browser_ini_opfs_smoke=ok" "$OUT"; then
fi
echo "browser_ini_opfs_smoke=ok"
"$CHROMIUM" \
--headless=new \
--disable-gpu \
--no-sandbox \
--user-data-dir="$CHROME_PROFILE" \
--virtual-time-budget=10000 \
--dump-dom \
"$CONTROL_URL" >"$CONTROL_OUT" 2>&1
if ! grep -Fq "browser_ini_control_page_smoke=ok" "$CONTROL_OUT"; then
echo "browser INI control page smoke failed" >&2
sed -n '1,220p' "$CONTROL_OUT" >&2
exit 1
fi
echo "browser_ini_control_page_smoke=ok"