Skip to content

Commit bbfcb5a

Browse files
authored
Merge branch 'master' into greenkeeper/estraverse-5.0.0
2 parents e953620 + 29c6859 commit bbfcb5a

7 files changed

+200
-70
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
registry = "https://registry.yarnpkg.com"
21
package-lock=false

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
6.3.0 / 2020-06-18
2+
==================
3+
4+
- cce838a Update aria-query to 4.2.0
5+
- 121e8a4 Add two test cases found while upgrading to ARIA 1.2
6+
- 8059f51 Fix test failures raised by the upgrade to ARIA 1.2
7+
- 0d24e3a Update package.json
8+
- b1f412a Fix test failures in role-has-required-aria-props due to ARIA 1.2 updates
9+
- 74cec6e Fix test failures in no-noninteractive-element-interactions due to ARIA 1.2 updates
10+
- 835b89e Fix test failures in role-supports-aria-props-test due to ARIA 1.2 updates
11+
- 730319b Account for the null semantic generic role in ARIA 1.2
12+
- 7dfa7c9 Update aria-query from 4.0.1 to 4.0.2
13+
- 42098b9 [Refactor] `img-redundant-alt`: removing a use of `some`
14+
- a910d83 [Tests] `label-has-associated-control`: add test for <div><label /><input /></div>
15+
- b273fe5 [New] Support ESLint 7.x
16+
- 1a97632 [Deps] update `@babel/runtime`, `array-includes`, `axe-core`, `axobject-query`, `damerau-levenshtein`, `jsx-ast-utils`
17+
- b36976f [Dev Deps] update `@babel/cli`, `@babel/core`, `@babel/plugin-transform-flow-types`, `babel-eslint`, `babel-jest`, `coveralls`, `eslint-config-airbnb-base`, `eslint-plugin-flowtype`, `eslint-plugin-import`, `estraverse`, `in-publish`, `jest`, `minimist`, `rimraf`, `safe-publish-latest`
18+
- 89acdc4 fix: removing the use of the some function
19+
- 410ae43 chore(package): update eslint-plugin-flowtype to version 5.0.0
20+
- a87f83d fix(package): update emoji-regex to version 9.0.0
21+
- 71940e6 chore(package): update babel-preset-airbnb to version 5.0.0
22+
- d471f54 docs: Fix 404 links to WAI-ARIA spec
23+
- 42a2016 Fixes #669: use the `language-tags` package to check the `lang` rule
24+
- 7bcea20 [Tests] update axe-core
25+
- f13dc38 [Deps] Pin axe-core version
26+
- 33670bb fix: require missing 'autocomplete-valid' rule
27+
- aca4c37 chore(mouse-event): revert unrelated formatting changes
28+
- df1e275 fix(mouse-event): remove check from custom elements
29+
- 1a16a1c chore(package): update jscodeshift to version 0.7.0
30+
- 7a55cdd chore(package): update flow-bin to version 0.113.0
31+
- 8e0d22b Update aria-query and axobject-query to the latest versions
32+
- dd49060 Added test cases for an empty or undefined value of aria-label and aria-labelledby in alt-text
33+
- 1a7b94f Updated dependencies including eslint-config-airbnb-base
34+
- 3aea217 chore: replace ignoreNonDOM with inputComponents
35+
- 1848d00 feat(autocomplete-valid): add to recommended & strict config
36+
- 8703840 refactor: use to axe-cre 3.4 SerialVirtualNode format
37+
- 3519c7b chore: Remove axe VirtualNode abstraction
38+
- 9ac55c4 autocomplete-valid: Add inline comment
39+
- 44c6098 Update axe-core to 3.3.0
40+
- 9916990 new autocomplete-valid rule
41+
- 82f598e [Docs] examples: add language in code block for syntax highlight
42+
- 2529ad3 fixing casing issue on aria-props
43+
- 00926f2 Update README.md
44+
- ce5d121 Update README.md
45+
- 031574e chore(package): update flow-bin to version 0.103.0
46+
- e00e1db [meta] add FUNDING.yml
47+
- e1e5fae Fix readme file
48+
149
6.2.3 / 2019-06-30
250
=================
351
- [617] Add @babel/runtime to the dependencies

__tests__/src/rules/control-has-associated-label-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ const alwaysValid = [
192192
{ code: '<div role="presentation" />' },
193193
{ code: '<div role="region" />' },
194194
{ code: '<div role="rowgroup" />' },
195-
{ code: '<div role="scrollbar" />' },
196195
{ code: '<div role="search" />' },
197196
{ code: '<div role="separator" />' },
198197
{ code: '<div role="status" />' },
@@ -271,6 +270,7 @@ const neverValid = [
271270
{ code: '<div role="progressbar" />', errors: [expectedError] },
272271
{ code: '<div role="radio" />', errors: [expectedError] },
273272
{ code: '<div role="rowheader" />', errors: [expectedError] },
273+
{ code: '<div role="scrollbar" />', errors: [expectedError] },
274274
{ code: '<div role="searchbox" />', errors: [expectedError] },
275275
{ code: '<div role="slider" />', errors: [expectedError] },
276276
{ code: '<div role="spinbutton" />', errors: [expectedError] },

__tests__/src/rules/no-noninteractive-element-interactions-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ const alwaysValid = [
184184
{ code: '<div role="radiogroup" onClick={() => {}} />;' },
185185
{ code: '<div role="row" onClick={() => {}} />;' },
186186
{ code: '<div role="rowheader" onClick={() => {}} />;' },
187+
{ code: '<div role="scrollbar" onClick={() => {}} />;' },
187188
{ code: '<div role="searchbox" onClick={() => {}} />;' },
188189
{ code: '<div role="slider" onClick={() => {}} />;' },
189190
{ code: '<div role="spinbutton" onClick={() => {}} />;' },
@@ -340,7 +341,6 @@ const neverValid = [
340341
{ code: '<div role="rowgroup" onClick={() => {}} />;', errors: [expectedError] },
341342
{ code: '<div role="search" onClick={() => {}} />;', errors: [expectedError] },
342343
{ code: '<div role="separator" onClick={() => {}} />;', errors: [expectedError] },
343-
{ code: '<div role="scrollbar" onClick={() => {}} />;', errors: [expectedError] },
344344
{ code: '<div role="status" onClick={() => {}} />;', errors: [expectedError] },
345345
{ code: '<div role="table" onClick={() => {}} />;', errors: [expectedError] },
346346
{ code: '<div role="tabpanel" onClick={() => {}} />;', errors: [expectedError] },

__tests__/src/rules/role-has-required-aria-props-test.js

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,33 +69,6 @@ ruleTester.run('role-has-required-aria-props', rule, {
6969
code: '<div role="slider" aria-valuemax aria-valuemin />',
7070
errors: [errorMessage('slider')],
7171
},
72-
{
73-
code: '<div role="slider" aria-valuemax aria-valuenow />',
74-
errors: [errorMessage('slider')],
75-
},
76-
{
77-
code: '<div role="slider" aria-valuemin aria-valuenow />',
78-
errors: [errorMessage('slider')],
79-
},
80-
81-
// SPINBUTTON
82-
{ code: '<div role="spinbutton" />', errors: [errorMessage('spinbutton')] },
83-
{
84-
code: '<div role="spinbutton" aria-valuemax />',
85-
errors: [errorMessage('spinbutton')],
86-
},
87-
{
88-
code: '<div role="spinbutton" aria-valuemax aria-valuemin />',
89-
errors: [errorMessage('spinbutton')],
90-
},
91-
{
92-
code: '<div role="spinbutton" aria-valuemax aria-valuenow />',
93-
errors: [errorMessage('spinbutton')],
94-
},
95-
{
96-
code: '<div role="spinbutton" aria-valuemin aria-valuenow />',
97-
errors: [errorMessage('spinbutton')],
98-
},
9972

10073
// CHECKBOX
10174
{ code: '<div role="checkbox" />', errors: [errorMessage('checkbox')] },
@@ -135,5 +108,13 @@ ruleTester.run('role-has-required-aria-props', rule, {
135108
code: '<div role="scrollbar" aria-valuemin aria-valuenow />',
136109
errors: [errorMessage('scrollbar')],
137110
},
111+
{
112+
code: '<div role="heading" />',
113+
errors: [errorMessage('heading')],
114+
},
115+
{
116+
code: '<div role="option" />',
117+
errors: [errorMessage('option')],
118+
},
138119
].map(parserOptionsMapper),
139120
});

0 commit comments

Comments
 (0)