| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |