# 1.6.1: the first/last page buttons, the wider scrollbar, the Recent button (the last 5 PDFs, shown together with the
# bookmarks). test/wine/edit_tests.sh starts it with a copy of test/toc.pdf open (40 pages), Recent off and 7 recent
# PDFs in settings.ini (f0 = a copy of sample.pdf, f1-f6 = files that do not exist); @R = the run's suffix.
# Toolbar buttons: 2 = First page, 5 = Last page.
wait 1500
echo --- 1. at start: toolbar order, scrollbar, Recent = the newest 5 with the PDF just opened first, Recent off
state test/out/t29_01_start-@R.txt
echo --- 2. Last page: the end of the last page
btn 5
wait 500
state test/out/t29_02_last-@R.txt
echo --- 3. First page: the top of page 1
btn 2
wait 500
state test/out/t29_03_first-@R.txt
echo --- 4. a click 15 px left of the view's right edge is on the scrollbar now: the view moves down
sbclick 15 600
wait 500
state test/out/t29_04_sbclick-@R.txt
btn 2
wait 300
echo --- 5. the Recent button shows the list
recentbtn
wait 400
state test/out/t29_05_recent_on-@R.txt
echo --- 6. the bookmarks button: the panel opens under the Recent rows, Recent stays
bm
wait 800
state test/out/t29_06_both-@R.txt
shotscreen test/out/t29_06_both-@R.png
echo --- 7. a bookmark row still jumps there
bmrow 4 Reference
wait 800
state test/out/t29_07_bmrow-@R.txt
echo --- 8. Recent row 1 (the copy of sample.pdf) opens it in a new tab
recentrow 1
wait 1500
state test/out/t29_08_recent_open-@R.txt
echo --- 9. Recent row 1 is now the toc copy, already open: its tab comes to the front
recentrow 1
wait 800
state test/out/t29_09_recent_front-@R.txt
echo --- 10. a short window: Recent gives up rows so the panel keeps at least 4; nothing overlaps
resize 1000 560
wait 600
state test/out/t29_10_short-@R.txt
shotscreen test/out/t29_10_short-@R.png
resize 1400 900
wait 600
echo --- 11. the Recent button hides the list: the panel moves up under the open rows
recentbtn
wait 400
state test/out/t29_11_recent_off-@R.txt
echo --- 12. on again: the list is back above the panel (the choice is saved on)
recentbtn
wait 400
state test/out/t29_12_recent_again-@R.txt
echo --- 13. no PDF open: the Recent button keeps its place, the bookmarks place is empty
key ctrl+w
wait 300
key ctrl+w
wait 500
state test/out/t29_13_nopdf-@R.txt
shotscreen test/out/t29_13_nopdf-@R.png
quit
