summaryrefslogtreecommitdiffstats
path: root/testing/marionette/harness/marionette_harness/www/test_accessibility.html
blob: 8cc9fd64930c6930082729642c5d1973d8800ed8 (plain)
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
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html>

<html>
<meta charset="UTF-8">
<head>
<title>Marionette Test</title>
</head>
<body>
  <button id="button1">button1</button>
  <button id="button2" aria-label="button2"></button>
  <span id="button3">I am a bad button with no accessible</span>
  <h1 id="button4">I am a bad button that is actually a header</h1>
  <h1 id="button5">
    I am a bad button that is actually an actionable header with a listener
  </h1>
  <button id="button6"></button>
  <button id="button7" aria-hidden="true">button7</button>
  <div aria-hidden="true">
    <button id="button8">button8</button>
  </div>
  <button id="button9" style="position:absolute;left:-100px;top:-455px;">
    button9
  </button>
  <button id="button10" style="visibility:hidden;">
    button10
  </button>
  <span id="no_accessible_but_displayed">I have no accessible object</span>
  <button id="button11" disabled>button11</button>
  <button id="button12" aria-disabled="true">button12</button>
  <span id="no_accessible_but_disabled" disabled>I have no accessible object</span>
  <span id="button13" tabindex="0" role="button" aria-label="Span button">Span button</span>
  <span id="button14" role="button" aria-label="Span button">Unexplorable Span button</span>
  <button id="button15" style="pointer-events:none;">button15</button>
  <div style="pointer-events:none;">
    <button id="button16">button16</button>
  </div>
  <div style="pointer-events:none;">
    <button style="pointer-events:all;" id="button17">button17</button>
  </div>
  <input id="input1" title="My Input 1" name="myInput1" type="text" value="asdf"/>
  <select>
    <option id="option1" value="val1">Val1</option>
    <option id="option2" value="val2" selected>Val2</option>
  </select>
  <script>
      'use strict';
      document.getElementById('button5').addEventListener('click', function() {
        // A pseudo button that has a listener but is missing button semantics.
        return true;
      });
  </script>
</body>
</html>