# New tab backgrounds and the Customize panel (S018), offline. Each background with the pointer on the page (dark),
# a frame-time status at Lots/Fast per background, the panel open (dark and light, scrolled), and the image and
# GIF layers with Dim and Blur. Run: SMOKE_SIZE=1400x900 tools/smoke.sh tests/smoke/backgrounds.txt; read the PNGs.
# Frame times: <name>.json "frames" (median_ms/max_ms = draw time, drawn = frames so far; two statuses 4 s apart
# give the frame rate).
wait 3
resize 1400 900
set /theme/mode "dark"
set /ntp/name "Sam"
page nacre://newtab
wait 1
set /ntp/bg_density "medium"
set /ntp/bg_speed "normal"
set /ntp/bg "off"
pointer 300 400
wait 1
shot bg-none
status bg-none-a
wait 4
status bg-none-b
set /ntp/bg "shapes"
wait 2
shot bg-shapes
set /ntp/bg "blobs"
pointer 900 300
wait 2
shot bg-blobs
set /ntp/bg "particles"
pointer 250 350
wait 2
shot bg-constellation
set /ntp/bg "waves"
pointer 640 260
wait 2
shot bg-waves
set /ntp/bg "dots"
pointer 220 420
wait 2
shot bg-dots
pointer off
wait 2
shot bg-dots-nopointer
# Frame time at Lots and Fast, pointer on the page.
set /ntp/bg_density "high"
set /ntp/bg_speed "fast"
pointer 500 400
set /ntp/bg "shapes"
wait 2
status perf-shapes-a
wait 4
status perf-shapes-b
shot bg-shapes-lots
set /ntp/bg "blobs"
wait 2
status perf-blobs-a
wait 4
status perf-blobs-b
set /ntp/bg "particles"
wait 2
status perf-constellation-a
wait 4
status perf-constellation-b
shot bg-constellation-lots
set /ntp/bg "waves"
wait 2
status perf-waves-a
wait 4
status perf-waves-b
set /ntp/bg "dots"
wait 2
status perf-dots-a
wait 4
status perf-dots-b
shot bg-dots-lots
# Idle: a background tab, then the new tab with a still background.
newtab @PAGES@/hello.html
waitload 30
wait 2
status hidden-a
wait 4
status hidden-b
cmd close_tab
page nacre://newtab
set /perf/still_ntp true
wait 2
status still-a
wait 4
status still-b
set /perf/still_ntp false
set /ui/motion "off"
wait 2
status motionoff-a
wait 4
status motionoff-b
set /ui/motion "normal"
# The panel.
set /ntp/bg_density "medium"
set /ntp/bg_speed "normal"
set /ntp/bg "blobs"
customize
wait 2
shot panel-dark
set /theme/mode "light"
wait 1
shot panel-light
set /theme/mode "dark"
# Image, then GIF, under the animated layer.
set /ntp/bg_image "@PAGESDIR@/backdrop.jpg"
set /ntp/bg_dim 0.3
wait 2
shot image-dark
set /ntp/bg_blur 16
wait 1
shot image-blur
customize close
set /ntp/bg "off"
set /ntp/bg_blur 0
set /ntp/bg_image "@PAGESDIR@/backdrop.gif"
wait 2
shot gif-a
wait 0.25
shot gif-b
set /ntp/bg "dots"
pointer 600 450
wait 1
shot gif-dots
set /theme/mode "light"
set /ntp/bg_image ""
set /ntp/bg "shapes"
wait 1
shot bg-shapes-light
status done
quit
