Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: polymer_1.2.3/bower_components/iron-meta/test/iron-meta.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « polymer_1.2.3/bower_components/iron-meta/test/index.html ('k') | polymer_1.2.3/bower_components/iron-page-url/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698