# Saving a read-only file must fail cleanly and keep the changes (still unsaved). Copy of test/sample.pdf, chmod 444.
wait 1200
pdown 1 60 99
pmove 1 200 99
pup 1 300 99
wait 300
mini 0
wait 800
key ctrl+s
wait 1500
shotscreen test/out/t23_01_error.png
key enter
wait 500
state test/out/t23_02_after.txt
key ctrl+w
wait 500
shotscreen test/out/t23_03_prompt.png
key c
wait 500
state test/out/t23_04_cancelled.txt
quit
