Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore: Move a11y, lang, browserify, and webpack out of grunt (#5589)
- Loading branch information
1 parent
be9e9a9
commit db6e376
Showing
4 changed files
with
1,979 additions
and
2,632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const AccessSniff = require('access-sniff'); | ||
const path = require('path'); | ||
|
||
const testFiles = [ | ||
path.join(__dirname, '..', 'sandbox', 'descriptions.test-a11y.html') | ||
]; | ||
|
||
const options = { | ||
accessibilityLevel: 'WCAG2AA', | ||
reportLevels: { | ||
notice: false, | ||
warning: true, | ||
error: true | ||
}, | ||
ignore: [ | ||
// Ignore warning about contrast of the "vjs-no-js" fallback link | ||
'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.BgImage' | ||
] | ||
}; | ||
|
||
AccessSniff.default(testFiles, options).then(function(report) { | ||
AccessSniff.report(report); | ||
}).catch(function(error) { | ||
// there were errors, which are already reported, exit with an error | ||
process.exit(1); | ||
}); |
Oops, something went wrong.