Skip to content

Commit

Permalink
Merge branch 'update-dpub-aria' of https://github.com/kurosawa-takesh…
Browse files Browse the repository at this point in the history
…i/aria-query into kurosawa-takeshi-update-dpub-aria
  • Loading branch information
jessebeach committed Nov 26, 2019
2 parents b7b3383 + 5248f24 commit c3049e7
Show file tree
Hide file tree
Showing 41 changed files with 240 additions and 190 deletions.
14 changes: 14 additions & 0 deletions __tests__/src/rolesMap-test.js
Expand Up @@ -9,4 +9,18 @@ describe('rolesMap', function () {
it('should have size', function () {
expect(rolesMap.size).toBeGreaterThan(0);
});

// dpub-aria
describe('doc-abstract role', function () {
const abstract = rolesMap.get('doc-abstract');
const { props } = abstract;

it('should not have aria-describedat property', function () {
expect(props).toExcludeKey('aria-describedat');
});

it('should have aria-details property', function () {
expect(props).toInclude({ 'aria-details': null });
});
});
});
2 changes: 0 additions & 2 deletions flow/aria.js
Expand Up @@ -188,7 +188,6 @@ type ARIAProperty =
| 'aria-colspan'
| 'aria-controls'
| 'aria-current'
| 'aria-describedat'
| 'aria-describedby'
| 'aria-details'
| 'aria-dropeffect'
Expand Down Expand Up @@ -240,7 +239,6 @@ type ARIAPropertyMap = {
'aria-colspan'?: mixed,
'aria-controls'?: mixed,
'aria-current'?: ?ARIAPropertyCurrent,
'aria-describedat'?: mixed,
'aria-describedby'?: mixed,
'aria-details'?: mixed,
'aria-dropeffect'?: mixed,
Expand Down

0 comments on commit c3049e7

Please sign in to comment.