# After a whole-file save (a page deleted) the document is opened again: edit + save must keep working.
# Then close the tab with unsaved changes and answer Yes. Copy of test/sample.pdf.
wait 1200
prclick 3 300 300
wait 300
key d
wait 900
key ctrl+s
wait 2000
state test/out/t22_01_fullsave.txt
pdown 1 60 99
pmove 1 200 99
pup 1 300 99
wait 300
mini 1
wait 800
key ctrl+s
wait 1500
state test/out/t22_02_resaved.txt
pdown 1 60 115
pup 1 300 115
wait 300
mini 2
wait 800
state test/out/t22_03_dirty.txt
key ctrl+w
wait 500
key y
wait 2000
state test/out/t22_04_closed.txt
quit
