# Save asks first (1.5.1), part 2: a restart on t25's settings folder and file (the question was turned off there).
# test/wine/edit_tests.sh replaces @R with the run's suffix.
wait 1200
key ctrl+e
wait 300
echo --- 4. an arrow, Ctrl+S: saved without asking
rail 7
pdown 1 100 420
pmove 1 180 430
pup 1 250 460
wait 500
key ctrl+s
wait 1500
state test/out/t25_07_no_question-@R.txt
echo --- 5. Settings: switch the question back on
key ctrl+comma
wait 600
shotscreen test/out/t25_08_settings-@R.png
sclick 16 0
wait 300
state test/out/t25_08_switched_on-@R.txt
sclick 13 0
wait 400
echo --- 6. a pen stroke, Ctrl+S: asked; Yes
rail 2
pdown 1 100 300
pmove 1 140 280
pmove 1 180 320
pup 1 260 330
wait 500
key ctrl+s
wait 800
state test/out/t25_09_asked-@R.txt
key enter
wait 1500
state test/out/t25_10_saved-@R.txt
echo --- 7. a text box, Ctrl+S while typing in it: asked; Yes
rail 3
pclick 1 80 700
wait 300
type Saved after asking
key ctrl+s
wait 800
state test/out/t25_11_asked-@R.txt
key enter
wait 1500
state test/out/t25_12_saved-@R.txt
echo --- 8. a highlight, then menu > Save: asked; Yes
rail 0
pdown 1 60 104
pmove 1 150 104
pmove 1 300 106
pup 1 300 106
wait 300
mini 0
wait 700
btn 13
wait 400
key down
key enter
wait 800
state test/out/t25_13_asked-@R.txt
key enter
wait 1500
state test/out/t25_14_saved-@R.txt
echo --- 9. a note on the saved file, the Save button while still typing it: asked; Yes
rail 4
pclick 1 520 200
wait 300
type Typed, then the button
rail 12
wait 800
state test/out/t25_15_asked-@R.txt
key enter
wait 1500
state test/out/t25_16_saved-@R.txt
echo --- 10. a rectangle, close the tab, Yes to "Save the changes?": saved, no second question
rail 5
pdown 1 100 560
pmove 1 150 580
pup 1 200 600
wait 500
key ctrl+w
wait 500
key y
wait 1500
state test/out/t25_17_closed-@R.txt
quit
