-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move a11y, lang, browserify, and webpack out of grunt
- Loading branch information
1 parent
287b267
commit 4d9c5eb
Showing
4 changed files
with
1,870 additions
and
1,898 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.