Skip to content

Commit c4d52fc

Browse files
author
Todd Kloots
committed
[fixed] Issue where label assertion returns a false negative when label is inside a child Component (fixes #44)
[added] Tests to ensure anchors with a tabIndex but without an href require an ARIA button role (fixes #45) [added] selection and option to the list of interactive elements that require labels [removed] getFailures() method since all failures are now logged asynchronously
1 parent b632b14 commit c4d52fc

11 files changed

Lines changed: 593 additions & 218 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
language: node_js
22
node_js:
33
- "0.10"
4+
before_script:
5+
- export DISPLAY=:99.0
6+
- sh -e /etc/init.d/xvfb start

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ always be in sync.
3535
### Development
3636

3737
- `npm test` will fire up a karma test runner and watch for changes
38-
- `npm run examples` fires up a webpack dev server that will watch
39-
for changes and build the examples
4038

4139
### Build
4240

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ use the `includeSrcNode` option.
5858
a11y(React, { throw: true, includeSrcNode: true });
5959
```
6060

61-
All failures are also accessible via the `getFailures()` method.
62-
63-
```
64-
a11y.getFailures();
65-
```
66-
6761
Some test are only relevant for certain device types. For example,
6862
if you are building a mobile web app, you can filter out
6963
desktop-specific rules by specifying a specific device type:

karma.conf.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
var webpack = require('webpack');
2+
3+
module.exports = function (config) {
4+
config.set({
5+
6+
browserNoActivityTimeout: 30000,
7+
8+
browsers: [ process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome' ],
9+
10+
singleRun: process.env.CONTINUOUS_INTEGRATION === 'true',
11+
12+
frameworks: [ 'mocha' ],
13+
14+
files: [
15+
'tests.webpack.js'
16+
],
17+
18+
preprocessors: {
19+
'tests.webpack.js': [ 'webpack', 'sourcemap' ]
20+
},
21+
22+
reporters: [ 'dots' ],
23+
24+
webpack: {
25+
devtool: 'inline-source-map',
26+
module: {
27+
loaders: [
28+
{ test: /\.js$/, loader: 'babel-loader' }
29+
]
30+
},
31+
plugins: [
32+
new webpack.DefinePlugin({
33+
'process.env.NODE_ENV': JSON.stringify('test')
34+
})
35+
]
36+
},
37+
38+
webpackServer: {
39+
noInfo: true
40+
}
41+
42+
});
43+
};

0 commit comments

Comments
 (0)