| 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 --> |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 test('let the last value win registration against the key', function () { | 173 test('let the last value win registration against the key', function () { |
| 174 var registeredValue = metaPair[0].byKey(metaPair[0].key); | 174 var registeredValue = metaPair[0].byKey(metaPair[0].key); |
| 175 var firstValue = metaPair[0].value; | 175 var firstValue = metaPair[0].value; |
| 176 var secondValue = metaPair[1].value; | 176 var secondValue = metaPair[1].value; |
| 177 | 177 |
| 178 expect(registeredValue).to.not.be.equal(firstValue); | 178 expect(registeredValue).to.not.be.equal(firstValue); |
| 179 expect(registeredValue).to.be.equal(secondValue); | 179 expect(registeredValue).to.be.equal(secondValue); |
| 180 }); | 180 }); |
| 181 }); | 181 }); |
| 182 |
| 183 suite('singleton', function () { |
| 184 |
| 185 test('only one ironmeta created', function () { |
| 186 var first = Polymer.IronMeta.getIronMeta(); |
| 187 var second = Polymer.IronMeta.getIronMeta(); |
| 188 expect(first).to.be.equal(second); |
| 189 }); |
| 190 }); |
| 182 }); | 191 }); |
| 183 </script> | 192 </script> |
| 184 | 193 |
| 185 </body> | 194 </body> |
| 186 </html> | 195 </html> |
| OLD | NEW |