[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / aria-readonly.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <div id="content">
8
9 <!-- These reflect the native writable state, but can be overridden by @aria-readonly. -->
10 <div contenteditable id="htmlEditableDiv" data-expectedwritable="true"></div>
11 <div contenteditable id="htmlEditableDiv2" aria-readonly="true" data-expectedwritable="false"></div>
12 <div contenteditable id="htmlEditableDiv3" aria-readonly="false" data-expectedwritable="true"></div>
13 <div role="group" contenteditable id="htmlEditableDiv4" data-expectedwritable="true"></div>
14 <div role="group" contenteditable id="htmlEditableDiv5" aria-readonly="true" data-expectedwritable="false"></div>
15 <div role="group" contenteditable id="htmlEditableDiv6" aria-readonly="false" data-expectedwritable="true"></div>
16 <div role="group" id="htmlNonEditableDiv" data-expectedwritable="false"></div>
17 <div role="group" id="htmlNonEditableDiv2" aria-readonly="true" data-expectedwritable="false"></div>
18 <div role="group" id="htmlNonEditableDiv3" aria-readonly="false" data-expectedwritable="true"></div>
19 <div role="textbox" aria-readonly="false" aria-multiline="false" id="ariaTextBox" tabindex="0" data-expectedwritable="true"></div>
20 <div role="textbox" aria-readonly="true" id="ariaReadOnlyAriaTextBox" tabindex="0" data-expectedwritable="false"></div>
21
22 <!-- These are all readonly b/c the explicit boolean attr @readonly trumps @aria-readonly on native form elements. -->
23 <input type="text" readonly="readonly" id="htmlReadOnlyTextField" size=20 data-expectedwritable="false">
24 <input type="text" readonly id="htmlReadOnlyTextField2" size=20 data-expectedwritable="false">
25 <input type="text" readonly="readonly" aria-readonly="false" id="htmlReadOnlyTextField3" size=20 data-expectedwritable="false">
26 <input type="text" readonly aria-readonly="false" id="htmlReadOnlyTextField4" size=20 data-expectedwritable="false">
27 <textarea rows="2" cols="20" readonly="readonly" id="htmlReadOnlyTextArea" data-expectedwritable="false"></textarea>
28 <textarea rows="2" cols="20" readonly id="htmlReadOnlyTextArea2" data-expectedwritable="false"></textarea>
29 <textarea rows="2" cols="20" readonly aria-readonly="true" id="htmlReadOnlyTextArea3" data-expectedwritable="false"></textarea>
30 <textarea rows="2" cols="20" readonly aria-readonly="false" id="htmlReadOnlyTextArea3" data-expectedwritable="false"></textarea>
31
32 <!-- These are all writable b/c the implicit boolean attr @readonly is false, and trumps @aria-readonly on native form elements. -->
33 <input type="text" id="textField" size=20 data-expectedwritable="true">
34 <input type="text" aria-readonly="true" id="ariaReadOnlyTextField" size=20 data-expectedwritable="true">
35 <input type="text" aria-readonly="false" id="ariaNonReadOnlyTextField" size=20 data-expectedwritable="true">
36 <textarea rows="2" cols="20" id="textArea" data-expectedwritable="true"></textarea>
37 <textarea rows="2" cols="20" id="textArea2" aria-readonly="true" data-expectedwritable="true"></textarea>
38 <textarea rows="2" cols="20" id="textArea3" aria-readonly="false" data-expectedwritable="true"></textarea>
39
40
41 <!-- aria-readonly is also allowed on gridcells and grids -->
42 <div role="grid"><div role="row"><div role="gridcell" aria-readonly="true" id="ariaGridCell" tabindex="0" data-expectedwritable="false"></div></div></div>
43 <div role="grid"><div role="row"><div role="gridcell" aria-readonly="false" id="ariaGridCell2" tabindex="0" data-expectedwritable="true"></div></div></div>
44 <div role="grid"><div role="row"><div role="columnheader" aria-readonly="true" id="ariaColumnHeader" tabindex="0" data-expectedwritable="false"></div></div></div>
45 <div role="grid"><div role="row"><div role="columnheader" aria-readonly="false" id="ariaColumnHeader2" tabindex="0" data-expectedwritable="true"></div></div></div>
46 <div role="grid"><div role="row"><div role="rowheader" aria-readonly="true" id="ariaRowHeader" tabindex="0" data-expectedwritable="false"></div></div></div>
47 <div role="grid"><div role="row"><div role="rowheader" aria-readonly="false" id="ariaRowHeader2" tabindex="0" data-expectedwritable="true"></div></div></div>
48 <div role="grid" aria-readonly="true" id="ariaGrid" tabindex="0" data-expectedwritable="false"><div role="row"><div role="gridcell"></div></div></div>
49 <div role="grid" aria-readonly="false" id="ariaGrid2" tabindex="0" data-expectedwritable="true"><div role="row"><div role="gridcell"></div></div></div>
50 <div role="treegrid" aria-readonly="true" id="ariaTreeGrid" tabindex="0" data-expectedwritable="false"><div role="row"><div role="gridcell"></div></div></div>
51 <div role="treegrid" aria-readonly="false" id="ariaTreeGrid2" tabindex="0" data-expectedwritable="true"><div role="row"><div role="gridcell"></div></div></div>
52
53
54 <!--aria-readonly should be propagated to gridcells if the property is not set on the gridcell -->
55 <div role="grid" aria-readonly="true"><div role="row"><div role="gridcell" id="ariaGridCell3" tabindex="0" data-expectedwritable="false"></div></div></div>
56 <div role="grid" aria-readonly="false"><div role="row"><div role="gridcell" id="ariaGridCell4" tabindex="0" data-expectedwritable="true"></div></div></div>
57 <div role="grid" aria-readonly="false"><div role="row"><div role="gridcell" aria-readonly="true" id="ariaGridCell5" tabindex="0" data-expectedwritable="false"></div></div></div>
58 <div role="grid" aria-readonly="true"><div role="row"><div role="gridcell" aria-readonly="false" id="ariaGridCell6" tabindex="0" data-expectedwritable="true"></div></div></div>
59 <div role="grid" aria-readonly="true"><div role="row"><div role="columnheader" id="ariaColumnHeader3" tabindex="0" data-expectedwritable="false"></div></div></div>
60 <div role="grid" aria-readonly="false"><div role="row"><div role="columnheader" id="ariaColumnHeader4" tabindex="0" data-expectedwritable="true"></div></div></div>
61 <div role="grid" aria-readonly="false"><div role="row"><div role="columnheader" aria-readonly="true" id="ariaColumnHeader5" tabindex="0" data-expectedwritable="false"></div></div></div>
62 <div role="grid" aria-readonly="true"><div role="row"><div role="columnheader" aria-readonly="false" id="ariaColumnHeader6" tabindex="0" data-expectedwritable="true"></div></div></div>
63 <div role="grid" aria-readonly="true"><div role="row"><div role="rowheader" id="ariaRowHeader3" tabindex="0" data-expectedwritable="false"></div></div></div>
64 <div role="grid" aria-readonly="false"><div role="row"><div role="rowheader" id="ariaRowHeader4" tabindex="0" data-expectedwritable="true"></div></div></div>
65 <div role="grid" aria-readonly="false"><div role="row"><div role="rowheader" aria-readonly="true" id="ariaRowHeader5" tabindex="0" data-expectedwritable="false"></div></div></div>
66 <div role="grid" aria-readonly="true"><div role="row"><div role="rowheader" aria-readonly="false" id="ariaRowHeader6" tabindex="0" data-expectedwritable="true"></div></div></div>
67
68 </div>
69 <p id="description"></p>
70 <div id="console"></div>
71
72 <script>
73
74     description("This tests that the readonly state of the AXValue property is correctly reported for native and non-native elements.");
75
76     if (window.accessibilityController) {
77
78         var result = document.getElementById('console');
79         var elements = document.querySelectorAll('[data-expectedwritable]');
80         result.innerText += "Elements to test: " + elements.length + "\n\n";
81
82         for (var i = 0, c = elements.length; i < c; i++) {
83             var el = elements[i];
84             var id = el.id;
85             var axElement = accessibilityController.accessibleElementById(id);
86             var writable = axElement.isAttributeSettable("AXValue");
87
88             // Test whether AXValue is writable.
89             var passed = el.getAttribute('data-expectedwritable') === writable.toString();
90             var output = (passed ? "PASS" : "FAIL") + " " + id + "IsWritable is " + writable;
91             if (!passed)
92                 output += ", expected " + el.getAttribute("data-expectedwritable");
93             result.innerText += output + "\n";
94         }
95
96         document.getElementById("content").style.visibility = "hidden";
97     }
98
99 </script>
100
101 <script src="../resources/js-test-post.js"></script>
102 </body>
103 </html>