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

Side by Side Diff: lib/src/paper-button/test/paper-button.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
« no previous file with comments | « lib/src/paper-button/paper-button.html ('k') | lib/src/paper-card/paper-card.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 @license 3 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also 8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 --> 10 -->
(...skipping 28 matching lines...) Expand all
39 button = fixture('TrivialButton'); 39 button = fixture('TrivialButton');
40 }); 40 });
41 41
42 test('can be raised imperatively', function(done) { 42 test('can be raised imperatively', function(done) {
43 button.raised = true; 43 button.raised = true;
44 44
45 expect(button.hasAttribute('raised')).to.be.eql(true); 45 expect(button.hasAttribute('raised')).to.be.eql(true);
46 46
47 Polymer.Base.async(function() { 47 Polymer.Base.async(function() {
48 try { 48 try {
49 expect(button._elevation).to.be.eql(1); 49 expect(button.elevation).to.be.eql(1);
50 done(); 50 done();
51 } catch (e) { 51 } catch (e) {
52 done(e); 52 done(e);
53 } 53 }
54 }, 1); 54 }, 1);
55 }); 55 });
56 56
57 test('can be disabled imperatively', function() { 57 test('can be disabled imperatively', function() {
58 button.disabled = true; 58 button.disabled = true;
59 expect(button.getAttribute('aria-disabled')).to.be.eql('true'); 59 expect(button.getAttribute('aria-disabled')).to.be.eql('true');
(...skipping 25 matching lines...) Expand all
85 test('has aria role "button"', function() { 85 test('has aria role "button"', function() {
86 expect(button.getAttribute('role')).to.be.eql('button'); 86 expect(button.getAttribute('role')).to.be.eql('button');
87 }); 87 });
88 88
89 a11ySuite('TrivialButton'); 89 a11ySuite('TrivialButton');
90 }); 90 });
91 91
92 </script> 92 </script>
93 </body> 93 </body>
94 </html> 94 </html>
OLDNEW
« no previous file with comments | « lib/src/paper-button/paper-button.html ('k') | lib/src/paper-card/paper-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698