# 1.5.3: Open by Path takes a path from the clipboard; a paste button next to the search box; no Open button in
# the toolbar; a show/hide tabs button at the bottom of the tab column; a short window leaves the menu button out.
# Starts with a copy of test/sample.pdf open. test/wine/edit_tests.sh replaces @R with the run's suffix and puts
# another copy in a folder with spaces in its name. "setclip A|B" puts "A", a line break and "B" on the clipboard.
wait 1200
echo --- 1. the toolbar: no Open button; the menu at the bottom, clear of the buttons above it
state test/out/t27_01_toolbar-@R.txt
echo --- 2. two paths on the clipboard (Explorer's "Copy as path" on two files): the box starts with the first, all selected
setclip "Z:\src\test\out\t27-@R\Sample Report\Field - Final\report 02.pdf"|"Z:\src\test\out\t27-@R.pdf"
click 100 85
wait 600
state test/out/t27_02_box_clip-@R.txt
shotscreen test/out/t27_02_box_clip-@R.png
key enter
wait 1200
state test/out/t27_03_opened-@R.txt
echo --- 3. a path with forward slashes on the clipboard comes before the last path
setclip Z:/src/test/out/t27-@R.pdf
key ctrl+shift+o
wait 600
state test/out/t27_04_box_slashes-@R.txt
key esc
wait 300
echo --- 4. text that is not a path: the box starts with the last path opened from it
setclip hello world
key ctrl+shift+o
wait 600
state test/out/t27_05_box_not_path-@R.txt
key esc
wait 300
echo --- 5. the paste button next to the search box: the clipboard's text, on one line, becomes the query
setclip   valve|
key ctrl+f
wait 300
pbtn 3
wait 600
state test/out/t27_06_pasted-@R.txt
shotscreen test/out/t27_06_pasted-@R.png
setclip fluid|pressure
pbtn 3
wait 600
state test/out/t27_07_two_lines-@R.txt
echo --- 6. no text on the clipboard: the query stays
setclip
pbtn 3
wait 400
state test/out/t27_08_no_text-@R.txt
key esc
wait 300
echo --- 7. the tabs button at the bottom of the tab column hides the tabs; the toolbar's shows them again
shotscreen test/out/t27_09_side_button-@R.png
sidetabs
wait 400
state test/out/t27_10_hidden-@R.txt
btn 10
wait 400
state test/out/t27_11_shown-@R.txt
echo --- 8. a short window: the menu button is left out instead of covering the buttons above it
resize 1000 560
wait 600
state test/out/t27_12_short-@R.txt
shotscreen test/out/t27_12_short-@R.png
resize 1000 800
wait 600
state test/out/t27_13_tall-@R.txt
quit
