Nacre/tests/smoke/pip.txt
astar76 72709e07b9 S048: WebKit UI callbacks: pop-ups, dialogs, context menu, permissions, full screen, Web Inspector, PiP
- Pop-ups as related-view tabs; a blocked one's URL opens on "Allow"
- Closing a tab runs beforeunload (try_close, 3 s fallback); HTTP sign-in checked
- egui takes the pointer over the page while a dialog or menu is open; colour picker closes on Escape/outside
- Permission reasons recomputed for WebKit; media stream/WebRTC on; saved notification answers given to WebKit
- Notifications no longer dropped after a non-remembered allow
- F12 opens Web Inspector; nacre://devtools lists tabs and remote inspection (D-046); console/network page removed
- PiP moves the tab's own view into the PiP window and back (no reload)
- Smokes: dialogs, basics extended; pip.txt, auth.txt (server /auth), visible-ui.txt

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 08:03:51 -06:00

25 lines
887 B
Text

# 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