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 --> |
11 <html> | 11 <html> |
12 <head> | 12 <head> |
13 <meta charset="UTF-8"> | 13 <meta charset="UTF-8"> |
14 <title>paper-icon-button a11y tests</title> | 14 <title>paper-icon-button a11y tests</title> |
15 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0"> | 15 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0"> |
16 | 16 |
17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> | 17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
18 <script src="../../web-component-tester/browser.js"></script> | 18 <script src="../../web-component-tester/browser.js"></script> |
19 <script src="../../test-fixture/test-fixture-mocha.js"></script> | |
20 | 19 |
21 <link rel="import" href="../../iron-icons/iron-icons.html"> | 20 <link rel="import" href="../../iron-icons/iron-icons.html"> |
22 <link rel="import" href="../../test-fixture/test-fixture.html"> | |
23 <link rel="import" href="../paper-icon-button.html"> | 21 <link rel="import" href="../paper-icon-button.html"> |
24 | 22 |
25 </head> | 23 </head> |
26 <body> | 24 <body> |
27 | 25 |
28 <test-fixture id="A11yIconButtons"> | 26 <test-fixture id="A11yIconButtons"> |
29 <template> | 27 <template> |
30 <paper-icon-button id="iconButton1" icon="add"></paper-icon-button> | 28 <paper-icon-button id="iconButton1" icon="add"></paper-icon-button> |
31 <paper-icon-button id="iconButton2" icon="add" disabled></paper-icon-butto
n> | 29 <paper-icon-button id="iconButton2" icon="add" disabled></paper-icon-butto
n> |
32 <paper-icon-button id="iconButton3" icon="add" aria-label="custom"></paper
-icon-button> | 30 <paper-icon-button id="iconButton3" icon="add" aria-label="custom"></paper
-icon-button> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 test('alt attribute can be updated', function() { | 83 test('alt attribute can be updated', function() { |
86 assert.strictEqual(b4.getAttribute('aria-label'), 'alt text'); | 84 assert.strictEqual(b4.getAttribute('aria-label'), 'alt text'); |
87 b4.alt = 'alt again'; | 85 b4.alt = 'alt again'; |
88 assert.strictEqual(b4.getAttribute('aria-label'), 'alt again'); | 86 assert.strictEqual(b4.getAttribute('aria-label'), 'alt again'); |
89 }); | 87 }); |
90 | 88 |
91 </script> | 89 </script> |
92 | 90 |
93 </body> | 91 </body> |
94 </html> | 92 </html> |
OLD | NEW |