# Site colour from the favicon (S057): Colour source "Website" follows the icon's dominant vivid colour; a
# monochrome icon gives none. Offline, pages from a loopback server (a file:// page gets no favicon):
#   python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages &   then tools/smoke.sh <this script>
# Expect: shot-red chrome red, shot-blue chrome blue, shot-mono the default colour (System accent / palette, no tint).
wait 3
resize 1280 900
set /theme/source "website"
set /theme/mode "light"
open http://127.0.0.1:8765/favicon-red.html
waitload 30
wait 2
status red
expect /active/favicon_colour "#D62828"
expect /active/site_colour "#D62828"
shot shot-red
open http://127.0.0.1:8765/favicon-blue.html
waitload 30
wait 2
status blue
expect /active/favicon_colour "#1E5ADC"
shot shot-blue
open http://127.0.0.1:8765/favicon-mono.html
waitload 30
wait 2
status mono
expect /active/favicon_colour null
expect /active/site_colour null
shot shot-mono
status done
quit
