aboutsummaryrefslogtreecommitdiff
path: root/exampleData
diff options
context:
space:
mode:
authorGravatar Benjamin Jones <bjones@galois.com>2013-06-13 16:37:03 -0700
committerGravatar Benjamin Jones <bjones@galois.com>2013-06-13 16:37:03 -0700
commit79cb236d02c5ccdc7f4ce94a235c568dd3459528 (patch)
tree2862adbb4522f482cbc618dcb46d176a49903955 /exampleData
parent368b84da2d3a3b4756a3f95b66aa74e3fc5aaec6 (diff)
more cleanup
Diffstat (limited to 'exampleData')
-rw-r--r--exampleData/ruleSets/alwaysErrThreeTimes.json27
-rw-r--r--exampleData/ruleSets/basicUIRules.json58
2 files changed, 0 insertions, 85 deletions
diff --git a/exampleData/ruleSets/alwaysErrThreeTimes.json b/exampleData/ruleSets/alwaysErrThreeTimes.json
deleted file mode 100644
index 9c2b358..0000000
--- a/exampleData/ruleSets/alwaysErrThreeTimes.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{ 'name': 'always errors'
-, 'description': 'A trivial rule set for experimentation.'
-, 'rules': [
-//---------------------------
- { 'id': 112201
- , 'name': 'Reports three times'
- , 'description': 'Test guideline that reports three errors'
- , 'rule':
- function() {
- report('Problem 1 (g1)', null);
- report('Problem 3 (g1)', null);
- report('Problem 2 (g1)', null);
- }
- },
-//---------------------------
- { 'id': 1122202
- , 'name': 'Reports two times'
- , 'description': 'Test guideline that reports two errors.'
- , 'rule':
- function() {
- report('Problem 1 (g2)', null);
- report('Problem 2 (g2)', null);
- }
- }//,
-//---------------------------
- ]
-}
diff --git a/exampleData/ruleSets/basicUIRules.json b/exampleData/ruleSets/basicUIRules.json
deleted file mode 100644
index eeccb9b..0000000
--- a/exampleData/ruleSets/basicUIRules.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{ 'name': 'Basic HTML guidelines.'
-, 'description': 'A selection of simple HTML guidelines for improved usability and consistency.'
-, 'rules': [
- //---
- { 'id': 1001801
- , 'name': 'All input fields have exactly one label.'
- , 'description': '<p>Screen readers rely on HTML attributes to identify the purpose '
- + "of form widgets on-screen. These tools use label tags with 'for' "
- + 'attributes that specify the id of the form element they pertain to. '
- + 'Some of the components of this web page do not have those labels.</p>'
- , 'rule':
- function() {
- fiveui.query(':input').each(
- function(i, elt) {
- if (elt.id) {
- var $label = fiveui.query("label[for='" + elt.id + "']");
-
- if (1 < $label.size()) {
- report('Form element has too many labels', elt);
- }
-
- if (0 == $label.size()) {
- report('Form element has no label', elt);
- }
- }
- });
- }
- },
- //---
- { 'id': 1001802
- , 'name': "Don't use empty headings."
- , 'description': 'Empty headings confuse layout.'
- , 'rule':
- function() {
- fiveui.query(':header').each(
- function(i, elt) {
- if ($(elt).text() == '') {
- report('Heading is empty', elt);
- }
- });
- }
- },
- //---
- { 'id': 1001803
- , 'name': "Don't use empty hrefs."
- , 'description': "Links with no text can't generally be used."
- , 'rule':
- function() {
- fiveui.query('a').each(
- function(i, elt) {
- if ($(elt).text() == '' && elt.title == '') {
- report('Link has no text', elt);
- }
- });
- }
- }//,
- ]
-}