This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 659
/
noRedundantRoles.test.toml
80 lines (78 loc) · 2.5 KB
/
noRedundantRoles.test.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[[cases]]
filename = "file.tsx"
invalid = [
"<article role='article'></article>",
"<button role='button'></button>",
"<h1 role='heading' aria-level='1'>title</h1>",
"<h1 role='heading'>title</h1>",
"<dialog role='dialog'></dialog>",
"<input type='checkbox' role='checkbox' />",
"<figure role='figure'></figure>",
"<form role='form'></form>",
"<table role='grid'></table>",
"<td role='gridcell'></td>",
"<fieldset role='group'></fieldset>",
"<img src='foo' alt='bar' role='img' />",
"<a role='link'>something</a>",
"<link role='link' />",
"<ol role='list' ></ol>",
"<ul role='list' ></ul>",
"<select role='listbox' ></select>",
"<li role='listitem' ></li>",
"<nav role='navigation' ></nav>",
"<option role='option' ></option>",
"<tr role='row' ></tr>",
"<tbody role='rowgroup' ></tbody>",
"<tfoot role='rowgroup' ></tfoot>",
"<thead role='rowgroup' ></thead>",
"<th scope='row' role='rowheader' ></th>",
"<input type='search' role='searchbox' />",
"<table role='table' ></table>",
"<dt role='term' ></dt>",
"<textarea role='textbox' ></textarea>",
"<input type='text' role='textbox' />",
]
valid = [
"<article role='presentation' ></article>",
"<Button role='button' ></Button>",
"<span></span>",
]
[[cases]]
filename = "file.html"
invalid = [
"<article role=\"article\"></article>",
"<button role=\"button\"></button>",
"<h1 role=\"heading\" aria-level=\"1\">title</h1>",
"<h1 role=\"heading\">title</h1>",
"<dialog role=\"dialog\"></dialog>",
"<input type=\"checkbox\" role=\"checkbox\" />",
"<figure role=\"figure\"></figure>",
"<form role=\"form\"></form>",
"<table role=\"grid\"></table>",
"<td role=\"gridcell\"></td>",
"<fieldset role=\"group\"></fieldset>",
"<img src=\"foo\" alt=\"bar\" role=\"img\" />",
"<a role=\"link\">something</a>",
"<link role=\"link\" />",
"<ol role=\"list\" ></ol>",
"<ul role=\"list\" ></ul>",
"<select role=\"listbox\" ></select>",
"<li role=\"listitem\" ></li>",
"<nav role=\"navigation\" ></nav>",
"<option role=\"option\" ></option>",
"<tr role=\"row\" ></tr>",
"<tbody role=\"rowgroup\" ></tbody>",
"<tfoot role=\"rowgroup\" ></tfoot>",
"<thead role=\"rowgroup\" ></thead>",
"<th scope=\"row\" role=\"rowheader\" ></th>",
"<input type=\"search\" role=\"searchbox\" />",
"<table role=\"table\" ></table>",
"<dt role=\"term\" ></dt>",
"<textarea role=\"textbox\" ></textarea>",
"<input type=\"text\" role=\"textbox\" />",
]
valid = [
"<article role=\"presentation\" ></article>",
"<Button role=\"button\" ></Button>",
"<span></span>",
]