Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: lib/src/paper-radio-button/test/basic.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « lib/src/paper-radio-button/paper-radio-button.html ('k') | lib/src/paper-radio-group/paper-radio-group.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698