mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Add tests
This commit is contained in:
@@ -307,7 +307,11 @@ const htmlAttr: React.HTMLProps<HTMLElement> = {
|
||||
},
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: "<strong>STRONG</strong>"
|
||||
}
|
||||
},
|
||||
'aria-atomic': false,
|
||||
'aria-checked': 'true',
|
||||
'aria-colcount': 7,
|
||||
'aria-label': 'test'
|
||||
};
|
||||
DOM.div(htmlAttr);
|
||||
DOM.span(htmlAttr);
|
||||
|
||||
@@ -41,6 +41,17 @@ StatelessComponent2.defaultProps = {
|
||||
<b>foo</b>
|
||||
</div>;
|
||||
|
||||
// WAI-ARIA 1.1 Attributes
|
||||
<div
|
||||
aria-atomic={false}
|
||||
aria-checked='true'
|
||||
aria-colcount={7}
|
||||
aria-label='test'
|
||||
ariaExpanded='false' // $ExpectError
|
||||
>
|
||||
<b>bar</b>
|
||||
</div>;
|
||||
|
||||
interface Props {
|
||||
hello: string;
|
||||
}
|
||||
|
||||
@@ -346,7 +346,11 @@ const htmlAttr: React.HTMLProps<HTMLElement> = {
|
||||
},
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: "<strong>STRONG</strong>"
|
||||
}
|
||||
},
|
||||
'aria-atomic': false,
|
||||
'aria-checked': 'true',
|
||||
'aria-colcount': 7,
|
||||
'aria-label': 'test'
|
||||
};
|
||||
React.DOM.div(htmlAttr);
|
||||
React.DOM.span(htmlAttr);
|
||||
|
||||
@@ -41,6 +41,17 @@ StatelessComponent2.defaultProps = {
|
||||
<b>foo</b>
|
||||
</div>;
|
||||
|
||||
// WAI-ARIA 1.1 Attributes
|
||||
<div
|
||||
aria-atomic={false}
|
||||
aria-checked='true'
|
||||
aria-colcount={7}
|
||||
aria-label='test'
|
||||
ariaExpanded='false' // $ExpectError
|
||||
>
|
||||
<b>bar</b>
|
||||
</div>;
|
||||
|
||||
interface Props {
|
||||
hello: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user