aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/colorRulesRF.json
diff options
context:
space:
mode:
Diffstat (limited to 'exampleData/ruleSets/colorRulesRF.json')
-rw-r--r--exampleData/ruleSets/colorRulesRF.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/exampleData/ruleSets/colorRulesRF.json b/exampleData/ruleSets/colorRulesRF.json
new file mode 100644
index 0000000..1bd41a5
--- /dev/null
+++ b/exampleData/ruleSets/colorRulesRF.json
@@ -0,0 +1,17 @@
+/* colorRules.json
+ * Author: Benjamin Jones <bjones@galois.com>
+ *
+ * Simple rules for checking that the colors of specific elements are in a specific set.
+ * Test using exampleData/basic/testColorRules.html
+ */
+
+{ 'name': "Colors are in a specified set"
+, 'description': "All background and foreground colors used on a page should be in a specificed set"
+, 'rules': [
+ { 'name': "Foregrounds"
+ , 'description': "Foreground colors should be in the set:"+
+ "'#0, #FFFFFF, #3D3D3D, #B4B4B4, #4E4E4E, #C2C2C2, #F7F7F7"
+ , 'rule': fiveui.color.colorCheck(':visible', [ '#0', '#000000', '#FFFFFF', '#3D3D3D', '#B4B4B4', '#4E4E4E', '#C2C2C2', '#F7F7F7' ])
+ }
+ ]
+}