Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(Chrome Accessibility Plugin) No error context
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JLLeitschuh authored and sjelin committed Jul 13, 2015
1 parent 6582f81 commit 4c9886b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/accessibility/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ function runChromeDevTools(context) {
code: result.rule.code,
list: trimText(text)
};
},
function(reason){
return {
code: result.rule.code,
list: reason
};
})
);
});
Expand Down

0 comments on commit 4c9886b

Please sign in to comment.