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

Side by Side Diff: third_party/polymer/components/iron-selector/test/basic.html

Issue 2113853002: Run bower update (Closed) Base URL: https://github.com/catapult-project/catapult@polymer10-migration
Patch Set: Created 4 years, 5 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 setup(function() { 189 setup(function() {
190 s1 = fixture('defaults'); 190 s1 = fixture('defaults');
191 }); 191 });
192 192
193 test('cause iron-items-changed to fire', function(done) { 193 test('cause iron-items-changed to fire', function(done) {
194 var newItem = document.createElement('div'); 194 var newItem = document.createElement('div');
195 var changeCount = 0; 195 var changeCount = 0;
196 196
197 newItem.id = 'item999'; 197 newItem.id = 'item999';
198 198
199 s2.addEventListener('iron-items-changed', function() { 199 s2.addEventListener('iron-items-changed', function(event) {
200 changeCount++; 200 changeCount++;
201 var mutation = event.detail;
202 assert.notEqual(mutation, undefined);
203 assert.notEqual(mutation.addedNodes, undefined);
204 assert.notEqual(mutation.removedNodes, undefined);
201 }); 205 });
202 206
203 Polymer.dom(s2).appendChild(newItem); 207 Polymer.dom(s2).appendChild(newItem);
204 208
205 Polymer.Base.async(function() { 209 Polymer.Base.async(function() {
206 Polymer.dom(s2).removeChild(newItem); 210 Polymer.dom(s2).removeChild(newItem);
207 211
208 Polymer.Base.async(function() { 212 Polymer.Base.async(function() {
209 expect(changeCount).to.be.equal(2); 213 expect(changeCount).to.be.equal(2);
210 done(); 214 done();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 done(); 254 done();
251 }, 1); 255 }, 1);
252 }); 256 });
253 }); 257 });
254 }); 258 });
255 259
256 </script> 260 </script>
257 261
258 </body> 262 </body>
259 </html> 263 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698