OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 <html> | 10 <html> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 }); | 92 }); |
93 | 93 |
94 test('has aria role "radio"', function() { | 94 test('has aria role "radio"', function() { |
95 assert.isTrue(r1.getAttribute('role') == 'radio'); | 95 assert.isTrue(r1.getAttribute('role') == 'radio'); |
96 assert.isTrue(r2.getAttribute('role') == 'radio'); | 96 assert.isTrue(r2.getAttribute('role') == 'radio'); |
97 }); | 97 }); |
98 | 98 |
99 test('button with no label has no aria label', function() { | 99 test('button with no label has no aria label', function() { |
100 assert.isTrue(!r1.getAttribute('aria-label')); | 100 assert.isTrue(!r1.getAttribute('aria-label')); |
101 }); | 101 }); |
102 | 102 |
103 test('button with a label sets an aria label', function() { | |
104 assert.isTrue(r2.getAttribute('aria-label') == "Batman"); | |
105 }); | |
106 | |
107 test('button respects the user set aria-label', function() { | 103 test('button respects the user set aria-label', function() { |
108 var c = fixture('AriaLabel'); | 104 var c = fixture('AriaLabel'); |
109 assert.isTrue(c.getAttribute('aria-label') == "Batman"); | 105 assert.isTrue(c.getAttribute('aria-label') == "Batman"); |
110 }); | 106 }); |
111 | 107 |
112 a11ySuite('NoLabel'); | 108 a11ySuite('NoLabel'); |
113 a11ySuite('WithLabel'); | 109 a11ySuite('WithLabel'); |
114 a11ySuite('AriaLabel'); | 110 a11ySuite('AriaLabel'); |
115 }); | 111 }); |
116 </script> | 112 </script> |
117 </body> | 113 </body> |
118 </html> | 114 </html> |
OLD | NEW |