diff options
Diffstat (limited to 'exampleData/ruleSets/backgroundCheck.js')
-rw-r--r-- | exampleData/ruleSets/backgroundCheck.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/exampleData/ruleSets/backgroundCheck.js b/exampleData/ruleSets/backgroundCheck.js new file mode 100644 index 0000000..7da59aa --- /dev/null +++ b/exampleData/ruleSets/backgroundCheck.js @@ -0,0 +1,10 @@ +function() { + var allow = '#00 #FF #3D #F7 #C2 #B4 #4E'.split(' '); + report("broken"); + $5(':visible') + .cssIsNot('background-color', allow, fiveui.color.colorToHex) + .each(function(i, elt) { + var color = fiveui.color.colorToHex($(elt).css('background-color')); + report('non-standard background color: ' + color, $(elt)); + }); +} |