aboutsummaryrefslogtreecommitdiff
path: root/exampleData
diff options
context:
space:
mode:
Diffstat (limited to 'exampleData')
-rw-r--r--exampleData/headlessRuns/headingsRun.json13
-rw-r--r--exampleData/ruleSets/accessibility/titleNonEmpty.js4
2 files changed, 15 insertions, 2 deletions
diff --git a/exampleData/headlessRuns/headingsRun.json b/exampleData/headlessRuns/headingsRun.json
new file mode 100644
index 0000000..d6e5135
--- /dev/null
+++ b/exampleData/headlessRuns/headingsRun.json
@@ -0,0 +1,13 @@
+/*
+ * A very basic headless run example. This configuration runs two rule sets on
+ * the Whitehouse main webpage.
+ */
+{
+ "rulePath" : "../ruleSets/",
+ "crawlType" : "2 5 1000 *localhost*",
+ "firefoxProfile": "../../profiles/firefox/",
+ "runs": [
+ { "url": "http://localhost:8000/sites/headings.html", "ruleSet": "accessibility/accessibility.json" },
+ { "url": "http://localhost:8000/sites/headings.html", "ruleSet": "basic/basicUIRules.json" }
+ ]
+}
diff --git a/exampleData/ruleSets/accessibility/titleNonEmpty.js b/exampleData/ruleSets/accessibility/titleNonEmpty.js
index 27e281f..ff3388e 100644
--- a/exampleData/ruleSets/accessibility/titleNonEmpty.js
+++ b/exampleData/ruleSets/accessibility/titleNonEmpty.js
@@ -1,6 +1,6 @@
-exports.name = "titleNonEmpty";
+exports.name = "titleExists";
-exports.description = "Title of page is non-empty";
+exports.description = "Title of page should not be empty";
exports.rule = function(report) {
if (document.title == '') {