aboutsummaryrefslogtreecommitdiff
path: root/exampleData
diff options
context:
space:
mode:
authorGravatar Trevor Elliott <trevor@galois.com>2013-06-07 11:59:57 -0700
committerGravatar Trevor Elliott <trevor@galois.com>2013-06-07 11:59:57 -0700
commit8690d56ff0bbd1031e8cc6788dd2159aac6b7adb (patch)
treed573336305dc756f357f20dd986f77cb3ceafb9b /exampleData
parentf42930c2226d07482725b03ad522c106c0bdec8b (diff)
Reorganize the build system
* Move all javascript source to src/js * Update the test runner, etc. * Do less javascript compilation
Diffstat (limited to 'exampleData')
-rw-r--r--exampleData/ruleSets/colorRules/backgroundCheck.js4
-rw-r--r--exampleData/ruleSets/colorRules/foregroundCheck.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/exampleData/ruleSets/colorRules/backgroundCheck.js b/exampleData/ruleSets/colorRules/backgroundCheck.js
index 4ce7043..98df08c 100644
--- a/exampleData/ruleSets/colorRules/backgroundCheck.js
+++ b/exampleData/ruleSets/colorRules/backgroundCheck.js
@@ -8,11 +8,11 @@ exports.description =
exports.rule = function() {
var allow = '#00 #FF #3D #F7 #C2 #B4 #4E'.split(' ');
- report("broken");
+ this.report("broken");
$5(':visible')
.cssIsNot('background-color', allow, fiveui.color.colorToHex)
.each(function(i, elt) {
var color = fiveui.color.colorToHex($(elt).css('background-color'));
- report('non-standard background color: ' + color, $(elt));
+ this.report('non-standard background color: ' + color, $(elt));
});
};
diff --git a/exampleData/ruleSets/colorRules/foregroundCheck.js b/exampleData/ruleSets/colorRules/foregroundCheck.js
index 5b1e04b..2cf2b5f 100644
--- a/exampleData/ruleSets/colorRules/foregroundCheck.js
+++ b/exampleData/ruleSets/colorRules/foregroundCheck.js
@@ -11,6 +11,6 @@ exports.rule = function() {
.cssIsNot('color', allow, fiveui.color.colorToHex)
.each(function(i, elt) {
var color = fiveui.color.colorToHex($(elt).css('color'));
- report('foreground color: ' + color, elt);
+ this.report('foreground color: ' + color, elt);
});
};