Site: order only blocks whose projections overlap; ordering tests
This commit is contained in:
7 files changed
+172
-37
No files matched your search
@@ -8,23 +8,29 @@ wait_log "lok: first tile drawn" 60
|
||||
wait_log "doc: 3 headings"
|
||||
front
|
||||
sleep 3
|
||||
read -r zx zy < <(where "title=zoom-in")
|
||||
record_start doc
|
||||
snap doc-before
|
||||
# The page's left edge, past the outline column.
|
||||
page=$(first_bright doc-before 600 252 225)
|
||||
x=$((win_x + page))
|
||||
y=$win_y
|
||||
read -r zx zy < <(where "title=zoom-in")
|
||||
record_start doc
|
||||
pause 1.0
|
||||
pause 0.6
|
||||
mark "click end of Purpose paragraph"
|
||||
mouse click $((x + 720)) $((y + 392))
|
||||
pause 0.5
|
||||
mark "typing starts"
|
||||
typed " Every route also gets a printable offline map."
|
||||
mark "typing ends"
|
||||
pause 0.8
|
||||
mark "double-click 'forty'"
|
||||
mouse double $((x + 243)) $((y + 351))
|
||||
pause 0.5
|
||||
keys 'keystroke "b" using command down'
|
||||
mark "bold applied"
|
||||
pause 1.0
|
||||
mouse click "$zx" "$zy"
|
||||
mark "zoom to 125%"
|
||||
pause 0.6
|
||||
mouse move $((x + 760)) $((y + 640)) 0.7
|
||||
pause 2.0
|
||||
|
||||
@@ -146,13 +146,23 @@ record_start() {
|
||||
read -r x y w h < <(frame)
|
||||
[ "$w" = "$win_w" ] && [ "$h" = "$win_h" ] || echo "note: window is ${w}x${h}, not ${win_w}x${win_h}" >&2
|
||||
rm -f "$out/rec/$1.mov"
|
||||
cap_name=$1
|
||||
ffmpeg -hide_banner -loglevel error -f avfoundation -capture_cursor 1 -framerate 60 -pixel_format nv12 -i "0:none" \
|
||||
-vf "crop=$((w * 2)):$((h * 2)):$((x * 2)):$((y * 2))" -c:v h264_videotoolbox -b:v 80M -r 60 \
|
||||
"$out/rec/$1.mov" </dev/null &
|
||||
cap_pid=$!
|
||||
t0=$(now)
|
||||
: >"$out/rec/$1.txt"
|
||||
sleep 1.2
|
||||
}
|
||||
|
||||
now() { perl -MTime::HiRes=time -e 'printf "%.2f\n", time'; }
|
||||
|
||||
# Notes a key moment, in clip seconds, for the editor.
|
||||
mark() {
|
||||
awk -v a="$(now)" -v b="$t0" -v m="$1" 'BEGIN { printf "%5.1f %s\n", a - b - 0.5, m }' >>"$out/rec/$cap_name.txt"
|
||||
}
|
||||
|
||||
# Stops capture; encodes 1920x1080 H.264 60 fps; checks frames.
|
||||
record_stop() {
|
||||
local name=$1
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
#!/usr/bin/env bash
|
||||
# ElyTable: SUM row, sort by total, insert a chart.
|
||||
source "$(dirname "$0")/lib.sh"
|
||||
|
||||
us_input
|
||||
launch ely-table "$demo/Sales 2027.xlsx"
|
||||
wait_log "lok: first tile drawn" 60
|
||||
front
|
||||
sleep 4
|
||||
x=$win_x
|
||||
y=$win_y
|
||||
# Cell centers in window points.
|
||||
cell() { echo $((x + $1)) $((y + $2)); }
|
||||
menu() {
|
||||
osascript -e "tell application \"System Events\" to tell (first process whose unix id is $app_pid) to click menu item \"$2\" of menu \"$1\" of menu bar 1" >/dev/null
|
||||
}
|
||||
record_start table
|
||||
pause 0.8
|
||||
mark "click B9"
|
||||
mouse click $(cell 242 357)
|
||||
pause 0.4
|
||||
mark "typing =SUM(B2:B7)"
|
||||
typed "=SUM(B2:B7)"
|
||||
pause 0.4
|
||||
keys "key code 36"
|
||||
mark "formula entered"
|
||||
pause 0.5
|
||||
mouse click $(cell 242 357)
|
||||
pause 0.4
|
||||
mark "fill handle drag B9 to H9"
|
||||
mouse drag $(cell 295 370) $(cell 880 362) 1.0
|
||||
pause 0.8
|
||||
mark "select A1:H7"
|
||||
mouse drag $(cell 118 145) $(cell 880 305) 0.8
|
||||
pause 0.4
|
||||
menu Data AutoFilter
|
||||
mark "AutoFilter on"
|
||||
pause 0.7
|
||||
mouse click $(cell 921 147)
|
||||
mark "Total filter menu open"
|
||||
pause 0.8
|
||||
read -r sx sy < <(where $'title=Sort Z to A\t')
|
||||
mouse click "$sx" "$sy"
|
||||
mark "sorted Z to A by Total"
|
||||
pause 1.2
|
||||
mouse click $(cell 1100 600)
|
||||
pause 0.3
|
||||
mark "select A1:G7"
|
||||
mouse drag $(cell 118 145) $(cell 774 305) 0.8
|
||||
pause 0.4
|
||||
menu Insert "Chart…"
|
||||
mark "Insert Chart dialog"
|
||||
pause 0.8
|
||||
read -r ix iy < <(where $'AXButton\tvalue=\ttitle=Insert\t')
|
||||
mouse click $((ix - 87)) $((iy - 185))
|
||||
typed "Sales by product"
|
||||
pause 0.4
|
||||
mouse click "$ix" "$iy"
|
||||
mark "chart inserted"
|
||||
pause 1.0
|
||||
mouse drag $(cell 520 300) $(cell 520 610) 0.9
|
||||
mark "chart moved below the table"
|
||||
pause 0.6
|
||||
mouse click $(cell 1100 700)
|
||||
pause 1.5
|
||||
record_stop table
|
||||
Reference in new issue
Block a user