From 75c306329fae6c4c9ba39addc95b58671991bfc1 Mon Sep 17 00:00:00 2001 From: Rogan Creswick Date: Tue, 15 May 2012 11:27:55 -0700 Subject: updated batch runner to read a json-formatted rule test description, increasing robustness and expressiveness of the test system --- exampleData/ruleSets/headingGuidelines.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'exampleData/ruleSets') diff --git a/exampleData/ruleSets/headingGuidelines.json b/exampleData/ruleSets/headingGuidelines.json index 43ee1a4..be69fac 100644 --- a/exampleData/ruleSets/headingGuidelines.json +++ b/exampleData/ruleSets/headingGuidelines.json @@ -1,6 +1,7 @@ { "name": "Heading Guidelines" , "description": "Guidelines pertaining to the formatting and content of headings." -, "rules": [ { "name": "Headings are capitalized" +, "rules": [ { "id": 1 + , "name": "Headings are capitalized" , "description": "Check to see if all headings use leading capital letters." , "rule": function() { @@ -20,7 +21,8 @@ } }, - { "name": "Disallow Empty Headers" + { "id": 2 + , "name": "Disallow Empty Headers" , "description": "Heading elements should contain text." , "rule": function() { fiveui.query(':header').each( -- cgit v1.2.3