From 4c9886b410ea4d82098af322044a37908a112138 Mon Sep 17 00:00:00 2001 From: Jonathan Leitschuh Date: Fri, 10 Jul 2015 18:46:25 -0400 Subject: [PATCH] fix(Chrome Accessibility Plugin) No error context If your tests fail because of StaleElementReferenceError then there is no context about where this is coming from. By having the failure be handled inside of the plugin then grunt can fail gracefully. Additionally, this provides context about where the error originated from. Fixes #2331 --- plugins/accessibility/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/accessibility/index.js b/plugins/accessibility/index.js index 4df804aa8..bb0ddadc8 100644 --- a/plugins/accessibility/index.js +++ b/plugins/accessibility/index.js @@ -178,6 +178,12 @@ function runChromeDevTools(context) { code: result.rule.code, list: trimText(text) }; + }, + function(reason){ + return { + code: result.rule.code, + list: reason + }; }) ); });