# Mouse bindings on WebKit views (S056), hidden only (real compositor input): back/forward buttons over the page,
# middle click on a link (also a target=_blank one) opens a background tab. Offline. Run with tools/smoke.sh.
wait 3
open @PAGES@/hello.html
waitload
open @PAGES@/links.html
waitload
locate #l
wait 1
mclick @
wait 2
expect /tab_count 2
expect /active/url "@PAGES@/links.html"
locate #b
wait 1
mclick @
wait 2
expect /tab_count 3
expect /active/url "@PAGES@/links.html"
assert location.href.endsWith('links.html')
backclick 300 400
wait 2
waitload
assert location.href.endsWith('hello.html')
fwdclick 300 400
wait 2
waitload
assert location.href.endsWith('links.html')
status done
quit
