aboutsummaryrefslogtreecommitdiff
path: root/rsTester/src/test/resources/ruleSets/headingGuidelines.json
diff options
context:
space:
mode:
Diffstat (limited to 'rsTester/src/test/resources/ruleSets/headingGuidelines.json')
-rw-r--r--rsTester/src/test/resources/ruleSets/headingGuidelines.json35
1 files changed, 0 insertions, 35 deletions
diff --git a/rsTester/src/test/resources/ruleSets/headingGuidelines.json b/rsTester/src/test/resources/ruleSets/headingGuidelines.json
deleted file mode 100644
index 7ffd003..0000000
--- a/rsTester/src/test/resources/ruleSets/headingGuidelines.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{ "name": "Heading Guidelines"
-, "description": "Guidelines pertaining to the formatting and content of headings."
-, "rules": [ { "name": "Headings are capitalized"
- , "description": "Check to see if all headings use leading capital letters."
- , "rule":
- function() {
- var badHeadings =
- fiveui.query(':header').filter(
- function(idx) {
- var ch = $(this).text()[0];
- if (ch) {
- return (ch == ch.toLowerCase() );
- } else {
- return false;
- }
- });
- $(badHeadings).map(function(idx, elt){
- report('Heading does not start with a capitol letter.', elt);
- });
-
- }
- },
- { "name": "Disallow Empty Headers"
- , "description": "Heading elements should contain text."
- , "rule": function() {
- fiveui.query(':header').each(
- function(ix, elt) {
- if($(elt).text() == '') {
- report('Heading does not contain text', elt);
- }
- });
- }
- }
- ]
-} \ No newline at end of file