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-fab a11y tests</title> | 14 <title>paper-fab 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> | 19 <script src="../../test-fixture/test-fixture-mocha.js"></script> |
20 | 20 |
21 <link rel="import" href="../../core-icons/core-icons.html"> | 21 <link rel="import" href="../../iron-icons/iron-icons.html"> |
22 <link rel="import" href="../../test-fixture/test-fixture.html"> | 22 <link rel="import" href="../../test-fixture/test-fixture.html"> |
23 <link rel="import" href="../paper-fab.html"> | 23 <link rel="import" href="../paper-fab.html"> |
24 | 24 |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 | 27 |
28 <test-fixture id="A11yFabs"> | 28 <test-fixture id="A11yFabs"> |
29 <template> | 29 <template> |
30 <paper-fab id="fab1" icon="add"></paper-fab> | 30 <paper-fab id="fab1" icon="add"></paper-fab> |
31 <paper-fab id="fab2" icon="add" disabled></paper-fab> | 31 <paper-fab id="fab2" icon="add" disabled></paper-fab> |
(...skipping 30 matching lines...) Expand all Loading... |
62 test('user-defined aria-label is preserved', function() { | 62 test('user-defined aria-label is preserved', function() { |
63 assert.strictEqual(f3.getAttribute('aria-label'), 'custom'); | 63 assert.strictEqual(f3.getAttribute('aria-label'), 'custom'); |
64 f3.icon = 'arrow-forward'; | 64 f3.icon = 'arrow-forward'; |
65 assert.strictEqual(f3.getAttribute('aria-label'), 'custom'); | 65 assert.strictEqual(f3.getAttribute('aria-label'), 'custom'); |
66 }); | 66 }); |
67 | 67 |
68 </script> | 68 </script> |
69 | 69 |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |