推进 INI 面板 launch entry

This commit is contained in:
2026-06-14 23:12:22 +08:00
parent 59ffacb64e
commit c18aa21d70
5 changed files with 203 additions and 0 deletions

View File

@@ -62,8 +62,10 @@ 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"
LAUNCH_URL="http://127.0.0.1:$PORT/tests/browser/ini_panel_launch_smoke.html"
OUT="$TMP_DIR/chromium.out"
CONTROL_OUT="$TMP_DIR/chromium-control.out"
LAUNCH_OUT="$TMP_DIR/chromium-launch.out"
"$CHROMIUM" \
--headless=new \
@@ -98,3 +100,20 @@ if ! grep -Fq "browser_ini_control_page_smoke=ok" "$CONTROL_OUT"; then
fi
echo "browser_ini_control_page_smoke=ok"
"$CHROMIUM" \
--headless=new \
--disable-gpu \
--no-sandbox \
--user-data-dir="$CHROME_PROFILE" \
--virtual-time-budget=10000 \
--dump-dom \
"$LAUNCH_URL" >"$LAUNCH_OUT" 2>&1
if ! grep -Fq "browser_ini_launch_smoke=ok" "$LAUNCH_OUT"; then
echo "browser INI launch smoke failed" >&2
sed -n '1,220p' "$LAUNCH_OUT" >&2
exit 1
fi
echo "browser_ini_launch_smoke=ok"