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 660
/
useAriaPropsForRole.test.toml
87 lines (85 loc) · 4.6 KB
/
useAriaPropsForRole.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
80
81
82
83
84
85
86
[[cases]]
filename = "file.tsx"
invalid = [
"<span role=\"checkbox\"></span>",
"<span role=\"switch\"></span>",
"<span role=\"spinbutton\"></span>",
"<span role=\"spinbutton\" aria-valuemax=\"100\"></span>",
"<span role=\"spinbutton\" aria-valuemin=\"0\"></span>",
"<span role=\"spinbutton\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"slider\" aria-valuemin=\"0\"></span>",
"<span role=\"slider\" aria-valuemax=\"100\"></span>",
"<span role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"separator\" aria-valuemin=\"0\"></span>",
"<span role=\"separator\" aria-valuemax=\"100\"></span>",
"<span role=\"separator\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\"></span>",
"<span role=\"scrollbar\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-orientation=\"horizontal\"></span>",
"<span role=\"radio\"></span>",
"<span role=\"option\"></span>",
"<span role=\"heading\"></span>",
"<span role=\"combobox\"></span>",
"<span role=\"combobox\" aria-expanded=\"true\"></span>",
"<span role=\"combobox\" aria-controls=\"true\"></span>",
"<span role=\"menuitemcheckbox\" ></span>",
"<span role=\"menuitemradio\" ></span>",
]
valid = [
"<span role=\"checkbox\" aria-checked=\"true\"></span>",
"<span role=\"switch\" aria-checked=\"true\"></span>",
"<span role=\"spinbutton\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"slider\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"separator\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"scrollbar\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\" aria-orientation=\"horizontal\" aria-controls=\"123\"></span>",
"<span role=\"radio\" aria-checked=\"true\"></span>",
"<span role=\"option\" aria-selected=\"true\"></span>",
"<span role=\"heading\" aria-level=\"1\"></span>",
"<span role=\"combobox\" aria-controls=\"true\" aria-expanded=\"true\"></span>",
"<span role=\"menuitemcheckbox\" aria-checked=\"true\"></span>",
"<span role=\"menuitemradio\" aria-checked=\"true\"></span>",
"<Span role=\"menuitemradio\" ></Span>",
]
[[cases]]
filename = "file.html"
invalid = [
"<span role=\"checkbox\"></span>",
"<span role=\"switch\"></span>",
"<span role=\"spinbutton\"></span>",
"<span role=\"spinbutton\" aria-valuemax=\"100\"></span>",
"<span role=\"spinbutton\" aria-valuemin=\"0\"></span>",
"<span role=\"spinbutton\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"slider\" aria-valuemin=\"0\"></span>",
"<span role=\"slider\" aria-valuemax=\"100\"></span>",
"<span role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"separator\" aria-valuemin=\"0\"></span>",
"<span role=\"separator\" aria-valuemax=\"100\"></span>",
"<span role=\"separator\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\"></span>",
"<span role=\"scrollbar\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\" aria-valuemax=\"100\"></span>",
"<span role=\"scrollbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-orientation=\"horizontal\"></span>",
"<span role=\"radio\"></span>",
"<span role=\"option\"></span>",
"<span role=\"heading\"></span>",
"<span role=\"combobox\"></span>",
"<span role=\"combobox\" aria-expanded=\"true\"></span>",
"<span role=\"combobox\" aria-controls=\"true\"></span>",
"<span role=\"menuitemcheckbox\" ></span>",
"<span role=\"menuitemradio\" ></span>",
]
valid = [
"<span role=\"checkbox\" aria-checked=\"true\"></span>",
"<span role=\"switch\" aria-checked=\"true\"></span>",
"<span role=\"spinbutton\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"slider\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"separator\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\"></span>",
"<span role=\"scrollbar\" aria-valuemax=\"100\" aria-valuemin=\"0\" aria-valuenow=\"50\" aria-orientation=\"horizontal\" aria-controls=\"123\"></span>",
"<span role=\"radio\" aria-checked=\"true\"></span>",
"<span role=\"option\" aria-selected=\"true\"></span>",
"<span role=\"heading\" aria-level=\"1\"></span>",
"<span role=\"combobox\" aria-controls=\"true\" aria-expanded=\"true\"></span>",
"<span role=\"menuitemcheckbox\" aria-checked=\"true\"></span>",
"<span role=\"menuitemradio\" aria-checked=\"true\"></span>",
]