Add tests

This commit is contained in:
Craig Kovatch
2018-01-06 11:11:44 -08:00
parent eebfcef80e
commit 0565f573b6
4 changed files with 32 additions and 2 deletions
+5 -1
View File
@@ -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);
+11
View File
@@ -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;
}
+5 -1
View File
@@ -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);
+11
View File
@@ -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;
}