Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Merge tag 'v2.9.0-rc.0' into release
Browse files Browse the repository at this point in the history
Version 2.9.0-rc.0
  • Loading branch information
Alice Boxhall committed Sep 4, 2015
2 parents cc660b6 + 6b625cb commit 7f7ba58
Show file tree
Hide file tree
Showing 41 changed files with 1,299 additions and 208 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/js/externs/**
46 changes: 46 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"env": {
"browser": true
},
"globals": {
"goog": false,
"axs": true,
"getEventListeners": true
},
"plugins": ["google-camelcase"],
"rules": {
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": 0,
"comma-style": [2, "last"],
"curly": 0,
"dot-notation": 0,
"eqeqeq": 0,
"google-camelcase/google-camelcase": 1,
"indent": 1,
"key-spacing": 1,
"new-cap": 0,
"no-console": 0,
"no-else-return": 1,
"no-fallthrough": 2,
"no-multi-spaces": 1,
"no-param-reassign": 1,
"no-redeclare": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-use-before-define": 0,
"object-curly-spacing": [1, "always"],
"one-var": [2, "never"],
"quotes": [1, "single", "avoid-escape"],
"quote-props": 0,
"semi": 2,
"semi-spacing": 1,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [1, "never"],
"spaced-comment": [2, "always"],
"space-in-parens": [2, "never"],
"space-infix-ops": 1,
"space-unary-ops": 1,
"strict": 0
}
}
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: node_js
node_js:
- "0.10"
- "0.12"
notifications:
email: false
sudo: false
before_install:
- npm install -g grunt-cli
26 changes: 26 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## 2.9.0-rc.0 - 2015-08-21

### New rules

* A label element may not have labelable descendants other than its labeled control (`src/audits/MultipleLabelableElementsPerLabel.js`)

### Enhancements

* Implement support for specifying audit configuration options through an object when initializing audits (#165).
* Implement support for AMD loaders.

### Bug fixes:

* Fix `badAriaAttributeValue` not correctly handling decimal values (#182).
* Work around null pointer exception caused by closure compiler issue (#183).
* Add a special case to handle color `"transparent"` to fix (#180).
* Fix `matchSelector` not working properly in browser environments without vendor prefixes (#189).
* Fix false positives on elements with no role for Unsupported ARIA Attribute rule (#178 and #199).
* Fix ARIA `tablist` and ARIA `tab` scope (#204)
* Fix link with clear purpose with text alternative (#156);
* Handle edge cases in number parser, e.g. "+1", ".1", "01"
* HTML button containing img with alt attribute now passes controlsWithoutLabel (#202)
* Disabled elements should be ignored by low contrast audit (#205)
* Fix input of type "text" did not find correct implied role (#225)
* Hidden links are no longer relevant for meaningful link text rule.

## 2.8.0 - 2015-07-24

## 2.8.0-rc.0 - 2015-07-10
Expand Down
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ module.exports = function(grunt) {
}
},

eslint: {
options: {
configFile: '.eslintrc'
},
target: ['./src/js/', './src/audits/']
},

prompt: {
'gh-release': {
options: {
Expand Down Expand Up @@ -269,6 +276,7 @@ module.exports = function(grunt) {
});

grunt.registerTask('build', ['clean:local', 'save-revision', 'closurecompiler:minify']);
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('test:unit', ['qunit']);
grunt.registerTask('dist', ['clean:dist', 'build', 'copy:dist']);
grunt.registerTask('travis', ['closurecompiler:minify', 'test:unit']);
Expand Down
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ To include just the javascript rules, require the following file:

https://raw.github.com/GoogleChrome/accessibility-developer-tools/stable/dist/js/axs_testing.js

`git 1.6.5` or later:
`git 1.6.5` or later:

% git clone --recursive https://github.com/GoogleChrome/accessibility-developer-tools.git

Before `git 1.6.5`:

% git clone https://github.com/GoogleChrome/accessibility-developer-tools.git
Expand Down Expand Up @@ -55,7 +55,7 @@ Work is underway to include the library in WebDriver and other automated testing

## The `axs.Audit.run()` method

Once you have included `axs_testing.js`, you can call call `axs.Audit.run()`. This returns an object in the following form:
Once you have included `axs_testing.js`, you can call `axs.Audit.run()`. This returns an object in the following form:

{
/** @type {axs.constants.AuditResult} */
Expand Down Expand Up @@ -83,7 +83,7 @@ The runner will load the specified file or URL in a headless browser, inject axs
"accessibility-developer-tools/stable/dist/js/axs_testing.js").mkString)
val report = js.executeScript("var results = axs.Audit.run();return axs.Audit.createReport(results);")
println(report)

### Run audit from Selenium WebDriver (Scala)(with caching):
val cache = collection.mutable.Map[String, String]()
val driver = org.openqa.selenium.firefox.FirefoxDriver //use driver of your choice
Expand All @@ -99,7 +99,7 @@ The runner will load the specified file or URL in a headless browser, inject axs
"accessibility-developer-tools/stable/dist/js/axs_testing.js"))
val report = js.executeScript("var results = axs.Audit.run();return axs.Audit.createReport(results);")
println(report)

If println() outputs nothing, check if you need to set DesiredCapabilities for your WebDriver (such as loggingPrefs):
https://code.google.com/p/selenium/wiki/DesiredCapabilities

Expand Down Expand Up @@ -182,7 +182,18 @@ You can set a `scope` on the `AuditConfiguration` object like this:
var configuration = new axs.AuditConfiguration();
configuration.scope = document.querySelector('main'); // or however you wish to choose your scope element
axs.Audit.run(configuration);


You may also specify a configuration payload while instantiating the `axs.AuditConfiguration`,
which allows you to provide multiple configuration options at once.

var configuration = new axs.AuditConfiguration({
auditRulesToRun: ['badAriaRole'],
scope: document.querySelector('main'),
maxResults: 5
});

axs.Audit.run(configuration);

## License

Copyright 2013 Google Inc. All Rights Reserved.
Expand Down
8 changes: 5 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"name": "accessibility-developer-tools",
"version": "2.8.0",
"version": "2.9.0-rc.0",
"homepage": "https://github.com/GoogleChrome/accessibility-developer-tools",
"authors": [
"Google"
],
"description": "This is a library of accessibility-related testing and utility code.",
"main": "dist/js/axs_testing.js",
"moduleType": [
"amd",
"globals"
],
"keywords": [
"accessibility",
"testing",
"WCAG"
"WCAG",
"module"
],
"license": "Apache License 2.0",
"license": "Apache-2.0",
"ignore": [
"**/.*",
"lib",
Expand Down
Loading

0 comments on commit 7f7ba58

Please sign in to comment.