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 basic tests</title> | 14 <title>paper-icon-button basic 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="../../test-fixture/test-fixture.html"> | |
22 <link rel="import" href="../../iron-icons/iron-icons.html"> | 20 <link rel="import" href="../../iron-icons/iron-icons.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="TrivialIconButton"> | 26 <test-fixture id="TrivialIconButton"> |
29 <template> | 27 <template> |
30 <div style="line-height:30px;"> | 28 <div style="line-height:30px;"> |
31 <paper-icon-button id="fab1" icon="add"></paper-icon-button> | 29 <paper-icon-button id="fab1" icon="add"></paper-icon-button> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 assert.strictEqual(!!b2.$.icon.src, true); | 66 assert.strictEqual(!!b2.$.icon.src, true); |
69 assert.ok(b2.$.icon.src); | 67 assert.ok(b2.$.icon.src); |
70 }); | 68 }); |
71 | 69 |
72 test('renders correctly independent of line height', function() { | 70 test('renders correctly independent of line height', function() { |
73 assert.ok(approxEqual(centerOf(b1.$.icon), centerOf(b1))); | 71 assert.ok(approxEqual(centerOf(b1.$.icon), centerOf(b1))); |
74 }); | 72 }); |
75 </script> | 73 </script> |
76 </body> | 74 </body> |
77 </html> | 75 </html> |
OLD | NEW |