# Background tabs (S052): a hidden tab's page is told it is hidden, gets no animation frames and its 10 ms timer runs
# about once a second (WebKit throttling). Offline.   tools/smoke.sh tests/smoke/bg-tabs.txt
wait 3
open @PAGES@/bg.html
waitfor 20 window.res !== undefined
newtab @PAGES@/hello.html
waitload
wait 20
cmd select 0
wait 1
js window.res
save bg JSON.stringify(window.res)
assert res.seen[0] === true && res.seen[res.seen.length - 1] === false
assert res.raf === 0
assert res.timer < 60
status done
quit
