# Media on WebKit (S051, D-039): WebKit's is-playing-audio marks the tab audible (Web Audio, which the page probe
# can't see), the tab mute goes through set_is_muted and the page keeps running. Offline, hidden (real click).
#   tools/smoke.sh tests/smoke/media-audio.txt <out>
wait 3
open @PAGES@/sound.html
waitload
click 300 300
waitfor 20 document.title === "Sound on"
waitstatus 20 /tabs/0/playing_audio true
expect /active/audible true
shot sound-on
cmd mute
wait 2
expect /active/muted true
expect /active/audible false
assert window.ctx.state === "running"
shot sound-muted
cmd mute
wait 2
expect /active/audible true
status done
quit
