diff --git a/CLAUDE.md b/CLAUDE.md index 16c3b8a..09e435a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -79,6 +79,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl | `tools/smoke.sh tests/smoke/privacy-mode.txt` (+ `SMOKE_ARGS=--incognito … privacy-incognito.txt`) | privacy mode: `pages/fingerprint.html` read off/on, `fp-off.json`/`fp-on.json` + shots (offline); `privacy-net.txt` (needs `tests/smoke/net/server.py`) frame cookies, per-site pause, Accept-Language; `SMOKE_TIMEOUT=700 … coveryourtracks.txt` EFF's test off/on (internet, direct). Selftest `save ` writes a JS string result to `.json`; `SMOKE_ARGS` passes browser arguments | now (S024) | | `python tools/icons.py` | rebuilds the icon font subset and `src/ui/icons.rs` from `tools/icons.txt` (needs fontTools and Arch's ttf-material-symbols-variable) | now (S015) | | `tools/engine-test/run.sh servo\|chromium\|webkit` + `analyze.py` | engine comparison: one browser visible on DP-1, throwaway profile, sites from `sites.txt`, per-second RAM (PSS), CPU, GPU of the whole process tree into `docs/engine/runs//samples.csv`; `webkit_shell.py` is the WebKitGTK 6.0 shell (needs `webkitgtk-6.0`); report `docs/engine/engine-comparison.md`. Never run two at once or alongside cargo | now | +| `tools/smoke.sh tests/smoke/pip.txt`, `python3 tests/smoke/net/server.py &` + `NACRE_NO_BRIDGE=1 tools/smoke.sh tests/smoke/auth.txt`, `tests/smoke/visible-ui.txt` (by hand, header) | PiP moves the live view and back (offline); HTTP sign-in cancel + saved login (offline); visible: portal file chooser, notification, page full screen, Web Inspector (`dialogs.txt` now also checks dialog answers, context menu, leave page, permission bars, notifications count) | now (S048) | | `tools/hidden.sh +

+

A link to hello

+

Some text to right click on.

+ diff --git a/tests/smoke/pip.txt b/tests/smoke/pip.txt new file mode 100644 index 0000000..4cf8cfe --- /dev/null +++ b/tests/smoke/pip.txt @@ -0,0 +1,25 @@ +# Picture in picture (S048): the tab's own view moves into the PiP window and back; the page keeps its state (no +# reload, video keeps playing). Offline. Run with tools/smoke.sh; read the PNGs. +wait 3 +open @PAGES@/video.html +waitload +waitfor 10 document.getElementById('v').currentTime > 0.5 +js window.marker = 42 +cmd pip +wait 2 +expect /active/pip true +expect /windows 2 +shot pip-window pip +shot pip-tab +assert window.marker === 42 && !document.getElementById('v').paused && document.documentElement.classList.contains('__nacre_pip') +js window.t0 = document.getElementById('v').currentTime +wait 1.5 +assert document.getElementById('v').currentTime !== window.t0 +cmd exitpip +wait 1.5 +expect /windows 1 +expect /active/pip false +assert window.marker === 42 && !document.getElementById('v').paused && !document.documentElement.classList.contains('__nacre_pip') +shot pip-back +status done +quit diff --git a/tests/smoke/visible-ui.txt b/tests/smoke/visible-ui.txt new file mode 100644 index 0000000..179ab57 --- /dev/null +++ b/tests/smoke/visible-ui.txt @@ -0,0 +1,32 @@ +# Visible UI callbacks (S048, D-045): what a hidden run can't show. Run by hand on the user's screen with the user's +# Wayland display and session bus (portal, notifications) but a throwaway home, e.g. +# HOME=$t XDG_CONFIG_HOME=$t/.config XDG_DATA_HOME=$t/.local/share XDG_CACHE_HOME=$t/.cache NACRE_SCRIPT= nacre +# and grab DP-1 with grim meanwhile: the portal's file chooser (cancelled by the user or left to close with Nacre), +# a system notification, the page's own full screen (chrome hidden), Web Inspector attached (F12). +wait 3 +open @PAGES@/dialogs.html +waitload +js document.getElementById('f').click() +wait 6 +shot file-request +js Notification.requestPermission().then(p => { window.np = p; }) +wait 1 +prompt allow +wait 1 +assert window.np === "granted" +js new Notification("Nacre test", { body: "S048 visible run" }), 1 +js window.onbeforeunload = null +wait 4 +open @PAGES@/basics.html +waitload +js document.documentElement.requestFullscreen() +wait 2 +status fullscreen-page +shot fullscreen-page +js document.exitFullscreen() +wait 2 +do devtools +wait 6 +shot inspector +status done +quit