# The Windower layer (tests/addons/windower_layer_test.sh): the wlayer test addon in the harness.
# Logged in first (the state windower_events primes at the load), then the addon.
@login
frames 1
load wlayer windower
frames 2
command //wl args one "two three" four
command //wlayer Args
command //WL
command //lua c wlayer args via lua
command //wlunknown x y
# a command a listener ignores (returns nothing, as Windower handlers do) is still theirs: no error
command //wlunknown2
# Windower's Config plugin: FrameRateDivisor (FastCS's, silent as Windower's is), and what isn't kept here
command //config FrameRateDivisor 0
command //config FrameRateDivisor 2
command //config FrameRateDivisor x
command //config AspectRatio 1
command //wl state
command //wl sleep
run 0.2
command //wl schedule
run 0.2
command //wl send
frames 2
run 0.3
text_in 1 the secret word
text_in 1 please hide me
text_in 1 a plain line
command /echo swap me
key 1e 1
key 1f 1
mouse 200 10 20
mouse 201 10 20 0
mouse 20a 10 20 120
packet_in ab 00 01 00 55 66 77 88
packet_in ac 00 01 00 55 66 77 88
packet_out ad 00 01 00 01 02 03 04
lua wlayer windower.packets.last_incoming(0x0AC):sub(5)
lua wlayer windower.packets.inject_outgoing(0x0AD, 'b9b7H':pack(0x0AD, 2, 0) .. 'ABCD')
packet_out 15 00 01 00 00 00 00 00
@login
frames 2
command //wl unreg
frames 2
unload wlayer
