1<!doctype html>
2<!--
3@license
4Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8Code distributed by Google as part of the polymer project is also
9subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.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>
49