TestEqCSSColor (open)

Tests if a CSS color matches the expected value

Syntax

LOADLIB "mod::system/lib/testframework.whlib";

MACRO TestEqCSSColor(STRING expected, STRING actual, INTEGER max_deviation, STRING annotation)

Parameters

STRING expected

Expected CSS color

STRING actual

Gotten CSS color

INTEGER max_deviation

Max deviation (differences per channel added together)

STRING annotation

Message to display when the test fails