a11y_agent 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/fixtures/sample.html DELETED
@@ -1,93 +0,0 @@
1
- <html>
2
-
3
- <head>
4
- <title>Accessibility Violations</title>
5
- </head>
6
-
7
- <body>
8
- <div>
9
- <p>Here is an emoji not wrapped in a span: 😀</p>
10
-
11
- <img src="image.jpg" alt="image" />
12
-
13
- <a href="https://example.com">Click here</a>
14
-
15
- <a href="#"></a>
16
-
17
- <a href="invalid-url">Invalid Link</a>
18
-
19
- <div></div>
20
-
21
- <div aria-bogus="true"></div>
22
-
23
- <div aria-hidden="false"></div>
24
-
25
- <div role="invalidRole"></div>
26
-
27
- <input type="text" autoComplete="off" />
28
-
29
- <div onClick={()=> alert("Clicked!")}></div>
30
-
31
- <input type="text" />
32
-
33
- <h1></h1>
34
-
35
- <iframe src="some-video.mp4"></iframe>
36
-
37
- <img src="photo.jpg" alt="photo" />
38
-
39
- <div onClick={()=> alert("Clicked!")} tabIndex={-1}></div>
40
-
41
- <label>Username</label>
42
- <input type="text" id="username" />
43
-
44
- <label htmlFor="username">Username</label>
45
- <input type="text" id="username" />
46
-
47
- <audio controls>
48
- <source src="audio.mp3" type="audio/mp3" />
49
- </audio>
50
-
51
- <div onMouseOver={()=> {}}></div>
52
-
53
- <div accessKey="s"></div>
54
-
55
- <div aria-hidden="true" tabIndex={0}></div>
56
-
57
- <input type="text" autoFocus />
58
-
59
- <marquee>Scrolling text</marquee>
60
-
61
- <div role="button" onClick={()=> {}}></div>
62
-
63
- <div onClick={()=> {}}></div>
64
-
65
- <div role="link"></div>
66
-
67
- <div tabIndex={1}></div>
68
-
69
- <select onChange={()=> {}}>
70
- <option>Option 1</option>
71
- <option>Option 2</option>
72
- </select>
73
-
74
- <div role="banner"></div>
75
-
76
- <button role="button">Click me</button>
77
-
78
- <table>
79
- <tr>
80
- <th>Header</th>
81
- <th>Another Header</th>
82
- </tr>
83
- <tr>
84
- <td>Data</td>
85
- <td>More Data</td>
86
- </tr>
87
- </table>
88
-
89
- <div tabIndex={5}></div>
90
- </div>
91
- </body>
92
-
93
- </html>
data/fixtures/sample.tsx DELETED
@@ -1,100 +0,0 @@
1
- import React from "react";
2
-
3
- const AccessibilityViolations = () => {
4
- return (
5
- <div>
6
- <html>
7
- <head>
8
- <title>Accessibility Violations</title>
9
- </head>
10
- <body>
11
- <div>
12
- <p>Here is an emoji not wrapped in a span: 😀</p>
13
-
14
- <img src="image.jpg" alt="image" />
15
-
16
- <a href="https://example.com">Click here</a>
17
-
18
- <a href="#"></a>
19
-
20
- <a href="invalid-url">Invalid Link</a>
21
-
22
- <div aria-activedescendant="some-id"></div>
23
-
24
- <div aria-bogus="true"></div>
25
-
26
- <div aria-hidden="false"></div>
27
-
28
- <div role="invalidRole"></div>
29
-
30
- <input type="text" autoComplete="off" />
31
-
32
- <div onClick={() => alert("Clicked!")}></div>
33
-
34
- <input type="text" />
35
-
36
- <h1></h1>
37
-
38
- <iframe src="some-video.mp4"></iframe>
39
-
40
- <img src="photo.jpg" alt="photo" />
41
-
42
- <div onClick={() => alert("Clicked!")} tabIndex={-1}></div>
43
-
44
- <label>Username</label>
45
- <input type="text" id="username" />
46
-
47
- <label htmlFor="username">Username</label>
48
- <input type="text" id="username" />
49
-
50
- <audio controls>
51
- <source src="audio.mp3" type="audio/mp3" />
52
- </audio>
53
-
54
- <div onMouseOver={() => {}}></div>
55
-
56
- <div accessKey="s"></div>
57
-
58
- <div aria-hidden="true" tabIndex={0}></div>
59
-
60
- <input type="text" autoFocus />
61
-
62
- <marquee>Scrolling text</marquee>
63
-
64
- <div role="button" onClick={() => {}}></div>
65
-
66
- <div onClick={() => {}}></div>
67
-
68
- <div role="link"></div>
69
-
70
- <div tabIndex={1}></div>
71
-
72
- <select onChange={() => {}}>
73
- <option>Option 1</option>
74
- <option>Option 2</option>
75
- </select>
76
-
77
- <div role="banner"></div>
78
-
79
- <button role="button">Click me</button>
80
-
81
- <table>
82
- <tr>
83
- <th>Header</th>
84
- <th>Another Header</th>
85
- </tr>
86
- <tr>
87
- <td>Data</td>
88
- <td>More Data</td>
89
- </tr>
90
- </table>
91
-
92
- <div tabIndex={5}></div>
93
- </div>
94
- </body>
95
- </html>
96
- </div>
97
- );
98
- };
99
-
100
- export default AccessibilityViolations;