Skip to content

Commit

Permalink
chore: bump version to 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Apr 24, 2017
1 parent d4bdc58 commit b1520d7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,27 @@ v2.1.7:
- Color contrast rule performance improvements using polyfilled elementsFromPoint
- Add better support for implicit roles
- DQElement supports xPath
v2.1.8:
date: 2017-02-21
changes:
- Move from Snyk to Retire.js
- Make CI run test-fast task instead of parallel
- Add documentation on writing integration tests and rules
- Allow a larger list of languages for HTML-valid-lang rule
- Add support for [role=img] in image-alt rule
- Fix bug with innerHeight in get-background-color
- Improve dom.is-offscreen function
- Integrate optional performance timer
- Empty include defaults to document
v2.2.0:
date: 2017-04-24
changes:
- Add configuration options for iframes: false, selectors: false, and elementRef: true
- Improve color-contrast rule for disabled elements
- Add webdriver task for testing mobile viewports
- Improve audio/video captioning rules
- Improve th-has-data-cells rule
- Expose incomplete reasons for color contrast rule as part of Needs Review
- Implement rule groupings as tags
- Allow building of axe in multiple languages
- Empty-heading rule has impact: moderate
6 changes: 3 additions & 3 deletions axe.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for axe-core 2.1.7
// Type definitions for axe-core 2.2.0
// Project: https://github.com/dequelabs/axe-core
// Definitions by: Marcy Sutton <https://github.com/marcysutton>

Expand Down Expand Up @@ -122,7 +122,7 @@ declare module axe {
* @param {Function} callback Optional The function to invoke when analysis is complete.
* @returns {any} results If the callback was not defined, aXe will return a Promise instead.
*/
function run(context?: ElementContext, options?: {runOnly?: RunOnly, rules?: Object}, callback?: (error: Error, results:AxeResults) => void): any
function run(context?: ElementContext, options?: {runOnly?: RunOnly, rules?: Object, iframes?: Boolean, elementRef?: Boolean, selectors?: Boolean}, callback?: (error: Error, results:AxeResults) => void): any

/**
* Starts analysis on the current document and its subframes
Expand All @@ -132,7 +132,7 @@ declare module axe {
* @param {Function} callback The function to invoke when analysis is complete.
* @returns {Object} results The aXe results object
*/
function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object}, callback: (results:AxeResults) => void): AxeResults
function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object, iframes?: Boolean, elementRef?: Boolean, selectors?: Boolean}, callback: (results:AxeResults) => void): AxeResults

/**
* Method for configuring the data format used by aXe. Helpful for adding new
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "axe-core",
"description": "Accessibility engine for automated Web UI testing",
"version": "2.1.8",
"version": "2.2.0",
"license": "MPL-2.0",
"contributors": [
{
Expand Down
9 changes: 8 additions & 1 deletion typings/axe-core/axe-core-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ axe.run(context, {}, (error: Error, results: axe.AxeResults) => {
console.log(results.violations.length);
console.log(results.violations[0].nodes[0].failureSummary)
});

axe.run().then(function(done:any) {
done();
});
// additional configuration options
axe.run(context, {iframes: false, selectors: false, elementRef: false}, (error: Error, results: axe.AxeResults) => {
console.log(results.passes.length);
});

// axe.a11yCheck config
axe.a11yCheck(context, {}, (results: axe.AxeResults) => {
Expand All @@ -31,6 +34,10 @@ axe.a11yCheck({include: [['#id1'], ['#id2']]}, {}, (results: axe.AxeResults) =>
axe.a11yCheck({exclude: [$fixture[0]]}, {}, (results: axe.AxeResults) => {
console.log(results)
})
// additional configuration options
axe.a11yCheck(context, {iframes: false, selectors: false, elementRef: false}, (results: axe.AxeResults) => {
console.log(results.passes.length);
});
var tagConfigRunOnly: axe.RunOnly = {
type: 'tag',
values: ['wcag2a']
Expand Down

0 comments on commit b1520d7

Please sign in to comment.