aboutsummaryrefslogtreecommitdiff
path: root/exampleData
diff options
context:
space:
mode:
authorGravatar Benjamin Jones <bjones@galois.com>2013-06-16 23:34:02 -0700
committerGravatar Benjamin Jones <bjones@galois.com>2013-06-16 23:34:02 -0700
commit465269594485f4bf61c7475ac0f46c95b7357014 (patch)
treea241bf80b53fe74c366eab92fe942469e50e3c7b /exampleData
parentb147b0d036f339a0c4c3676da5a3591f8fa5d030 (diff)
cleanup rule colorBrightness
Diffstat (limited to 'exampleData')
-rw-r--r--exampleData/ruleSets/accessibility/colorBrightness.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/exampleData/ruleSets/accessibility/colorBrightness.js b/exampleData/ruleSets/accessibility/colorBrightness.js
index 2f5db75..82c7b9b 100644
--- a/exampleData/ruleSets/accessibility/colorBrightness.js
+++ b/exampleData/ruleSets/accessibility/colorBrightness.js
@@ -38,11 +38,7 @@ exports.rule = function(report) {
if (fg && bg) {
var diff = brightDiff(fg, bg);
if (diff < MIN_DIFF) {
- report.error('Element has poor brightness difference: ' +
- 'fg = ' + JSON.stringify(fg) +
- ', fgb = ' + bright(fg) +
- ', bg = ' + JSON.stringify(bg) +
- ', bgb = ' + bright(bg), this);
+ report.error('Element has poor brightness difference: ' + diff, this);
}
}
});