Skip to content

Commit

Permalink
chore: sync with axe 2.1.7 on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Feb 17, 2017
2 parents d6ee74e + 13ca5c0 commit 12c386f
Show file tree
Hide file tree
Showing 21 changed files with 8,070 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm test
- npm run test-fast
env:
global:
- secure: qjMwfcWDzEhGWxVhmGi5s0MlsU4N/SI96mx6Gj36/GySxgIUU9EFXeN4SZS2OvRmy2/+l0XSt5ln9PWp4Suh2LM8/GaR5I6FALs/9rOLU9py0/G9V1ImqNN9Z6Nk6PvS71SAwP7xOtR+xsywnUEdHZ7dCA3fYEIsOkyq4KRQ9M7JHWogP+h+WsHPcznjPeNxVBCfYCXW0KhrLDzL4ZA+b2UY/IMZDXITdZ99TZQA6XSKTfJg3xs/jqXEo91igHNKN6VxappBqPbDiFxf7az1RExq3oHAawCDTaKE7xxip+6UIxAeo63tiM0vgp92HVrVsIQETSQFBP4aqhl/pfxQ7d9lto7Mz5AlxKvJ3CIwDD/hspPzG5SNrj/FgQLgK7LrUOomMOjf8giRUg8XXLe7Rb1jmbePP3Z9DIEg4Z+ar3dpC2dNiWYFwBM14wY39GuU6tJpzImGRRUGCMPiO55TVTdRZacVeIq1XWRecIH0CabZThJCwOxyiGIT5ETiT5CVs0CgnbVe99l1qyi8wrMnbw4m4UAlMQ/5kytqtsL957RwxvcctCtX+LlshAgC3m1Aq/aF8V/wIYDcRlwOY2HbGiFQJewV7Aeln3t/S8VFjP9hHn8ZTsH9ez3VB57Q53YgrxFCr6CXEK4X3dkmRpx9in3oDI51TxW32tInwGTukSg=
Expand Down
17 changes: 16 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,19 @@ v2.0.5:
- Support for UMD pattern
- Adds 508 tagging for table rules
- Fixes race condition for iframes
- Exclude actual nodes from array checking
- Exclude actual nodes from array checking
v2.0.7:
date: 2016-09-28
changes:
- Add TypeScript definition v1
v2.1.7:
date: 2016-12-13
changes:
- Add promise-based axe.run API method in favor of axe.a11yCheck
- Move TypeScript definition to root of project
- Add Inapplicable and Can't Tell results
- New rule: frame-title-unique
- Improvements to table rules: td-has-header, th-has-data-cells
- Color contrast rule performance improvements using polyfilled elementsFromPoint
- Add better support for implicit roles
- DQElement supports xPath
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ module.exports = function (grunt) {
'babel', 'concat:engine', 'uglify']);

grunt.registerTask('test', ['build', 'testconfig', 'fixture', 'connect',
'mocha', 'parallel']);
'mocha', 'parallel', 'jshint']);

grunt.registerTask('test-fast', ['build', 'testconfig', 'fixture', 'connect',
'mocha']);
'mocha', 'jshint']);

grunt.registerTask('dev', ['build', 'testconfig', 'fixture', 'connect', 'watch']);
};
2 changes: 1 addition & 1 deletion axe.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for axe-core 2.1.x
// Type definitions for axe-core 2.1.7
// Project: https://github.com/dequelabs/axe-core
// Definitions by: Marcy Sutton <https://github.com/marcysutton>

Expand Down
35 changes: 30 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
{
"name": "axe-core",
"description": "Accessibility engine for automated Web UI testing",
"version": "2.0.8",
"authors": [
"David Sturley <[email protected]>"
"version": "2.1.7",
"contributors": [
{
"name": "David Sturley",
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
{
"name": "Dylan Barrell",
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
{
"name": "Wilco Fiers",
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
{
"name": "Dian Fay",
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
},
{
"name": "Marcy Sutton",
"organization": "Deque Systems, Inc.",
"url": "http://deque.com/"
}
],
"repository": {
"type" : "git",
"url" : "https://github.com/dequelabs/axe-core.git"
},
"main": "axe.js",
"typings": "axe.d.ts",
"license": "MPL-2.0",
"ignore": [
"**/.*",
"node_modules",
"test",
"build"
"build",
"typings"
],
"devDependencies": {}
}
4 changes: 1 addition & 3 deletions build/tasks/langs.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ module.exports = function (grunt) {
continue;
}
var lang = entry[1].replace('Subtag: ', '').trim();
if (lang.length === 2) { // only interested in main languages
langs.push(lang);
}
langs.push(lang);
}
generateOutput(langs, check);
}).then(function () {
Expand Down
2 changes: 2 additions & 0 deletions build/test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports = module.exports = function (grunt, options) {
unit: {
options: {
logErrors: true,
log: true,
urls: [
'http://' + host + ':<%= connect.test.options.port %>/test/core/',
'http://' + host + ':<%= connect.test.options.port %>/test/checks/',
Expand All @@ -31,6 +32,7 @@ exports = module.exports = function (grunt, options) {
},
integration: {
options: {
log: true,
urls: mapToUrl(['test/integration/full/**/*.html', '!test/integration/full/**/frames/**/*.html'],
'<%= connect.test.options.port %>'),
run: true,
Expand Down
4 changes: 2 additions & 2 deletions doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ This will either be null or an object which is an instance of Error. If you are

#### Results Object

The callback function passed in as the third parameter of `axe.allyCheck` runs on the results object. This object has two components – a passes array and a violations array. The passes array keeps track of all the passed tests, along with detailed information on each one. This leads to more efficient testing, especially when used in conjunction with manual testing, as the user can easily find out what tests have already been passed. Similarly, the violations array keeps track of all the failed tests, along with detailed information on each one.
The callback function passed in as the third parameter of `axe.a11yCheck` runs on the results object. This object has two components – a passes array and a violations array. The passes array keeps track of all the passed tests, along with detailed information on each one. This leads to more efficient testing, especially when used in conjunction with manual testing, as the user can easily find out what tests have already been passed. Similarly, the violations array keeps track of all the failed tests, along with detailed information on each one.

###### `url`

Expand All @@ -440,7 +440,7 @@ Each object returned in these arrays have the following properties:
* `helpUrl` - URL that provides more information about the specifics of the violation. Links to a page on the Deque University site.
* `id` - Unique identifier for the rule; [see the list of rules](rule-descriptions.md)
* `impact` - How serious the violation is. Can be one of "minor", "moderate", "serious", or "critical" if the Rule failed or `null` if the check passed
* `tags` - Array of tags that this rule is assigned. These tags can be used in the option structure to select which rules are run ([see `axe.allyCheck` parameters below for more information](#a11ycheck-parameters)).
* `tags` - Array of tags that this rule is assigned. These tags can be used in the option structure to select which rules are run ([see `axe.a11yCheck` parameters below for more information](#a11ycheck-parameters)).
* `nodes` - Array of all elements the Rule tested
* `html` - Snippet of HTML of the Element
* `impact` - How serious the violation is. Can be one of "minor", "moderate", "serious", or "critical" if the test failed or `null` if the check passed
Expand Down
3 changes: 3 additions & 0 deletions doc/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ Add your project/integration to this file and submit a pull request.
16. [Lighthouse](https://github.com/GoogleChrome/lighthouse)
17. [Axegrinder](https://github.com/claflamme/axegrinder)
18. [Ghost-Axe](https://www.npmjs.com/package/ghost-axe)
19. [Protractor accessibility plugin](https://github.com/angular/protractor-accessibility-plugin)
20. [Storybook accessibility addon](https://github.com/jbovenschen/storybook-addon-a11y)
21. [Intern](https://github.com/theintern/intern-a11y)
Loading

0 comments on commit 12c386f

Please sign in to comment.