OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 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 |
| 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 |
| 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 |
| 10 --> |
| 11 |
| 12 <html> |
| 13 <head> |
| 14 |
| 15 <title>iron-meta-basic</title> |
| 16 <meta charset="utf-8"> |
| 17 <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 18 |
| 19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 20 <script src="../../web-component-tester/browser.js"></script> |
| 21 |
| 22 <link rel="import" href="../iron-meta.html"> |
| 23 |
| 24 </head> |
| 25 <body> |
| 26 |
| 27 <iron-meta key="info" value="foo/bar"></iron-meta> |
| 28 |
| 29 <script> |
| 30 |
| 31 suite('basic', function() { |
| 32 |
| 33 test('byKey', function() { |
| 34 var meta = document.createElement('iron-meta'); |
| 35 assert.equal(meta.byKey('info'), 'foo/bar'); |
| 36 }); |
| 37 |
| 38 test('list', function() { |
| 39 var meta = document.createElement('iron-meta'); |
| 40 assert.equal(meta.list.length, 1); |
| 41 }); |
| 42 |
| 43 }); |
| 44 |
| 45 </script> |
| 46 |
| 47 </body> |
| 48 </html> |
OLD | NEW |