Nacre/tests/smoke/painters.txt
astar76 23c6908ca5 S005: painter smoke tests; fix chrome blanking after PiP closes
- tests/smoke/painters.txt (5 tabs, switch, resize, PiP, close) and painters-perf.txt (memory, frame
  time, threads with 1/5/15 tabs, idle discard); test pages color.html, video.html, clip.webm.
- selftest: `resize <w> <h>`, `shot <name> pip`, status gets frames (median/max ms), painters, threads.
- Fix: a closing window's egui was destroyed with another window's GL context current, deleting the
  main window's font texture (chrome text/icons blank after PiP). BrowserWindow::destroy() makes its
  own context current first.
- Fix: PiP CSS resets the video's margin (video was shifted down in the PiP frame).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 18:34:37 -06:00

79 lines
1.5 KiB
Text

# Per-tab painters (S005): 5 tabs, each its own painter on the window's GL context. Every shot must show the
# right tab (colour + "TAB n", four white corner boxes), no black, garbage or stale frames, and the chrome intact.
# Run with tools/smoke.sh.
wait 3
open @PAGES@/color.html?n=1&c=%23c01c28
waitload 30
newtab @PAGES@/color.html?n=2&c=%2326a269
waitload 30
newtab @PAGES@/color.html?n=3&c=%231c71d8&anim=1
waitload 30
newtab @PAGES@/color.html?n=4&c=%23e5a50a
waitload 30
newtab @PAGES@/video.html
waitload 30
wait 2
status opened
# Switch through every tab, then back to one that was hidden for a while.
cmd select 0
wait 1
shot s1-tab1
cmd select 1
wait 1
shot s2-tab2
cmd select 2
wait 1
shot s3-tab3
cmd select 3
wait 1
shot s4-tab4
cmd select 4
wait 1
shot s5-tab5
cmd select 1
wait 1
shot s6-tab2-again
# Resize: the page must fill the new page area (corner boxes visible), then the old size again.
resize 900 600
wait 2
shot r1-small-tab2
cmd select 2
wait 1
shot r2-small-tab3
resize 1280 800
wait 2
shot r3-big-tab3
# Picture in picture: tab 5's video moves to its own window, the tab shows a placeholder.
cmd select 4
wait 1
cmd pip
wait 3
shot p1-main-tab5
shot p2-pip pip
cmd select 0
wait 2
shot p3-main-tab1
shot p4-pip-while-tab1 pip
status pip
cmd select 4
wait 1
cmd exitpip
wait 2
shot p5-tab5-back
# Close tabs: the tab that takes over must draw its own page.
cmd select 2
wait 1
cmd close_tab
wait 1
shot c1-closed-tab3
cmd close_tab
wait 1
shot c2-closed-tab4
cmd select 0
wait 1
cmd close_tab
wait 1
shot c3-closed-tab1
status closed
status done
quit