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

Side by Side Diff: third_party/polymer/components/neon-animation/test/neon-animated-pages-lazy.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) 2016 The Polymer Project Authors. All rights reserved. 4 Copyright (c) 2016 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 animatedPages.addEventListener('neon-animation-finish', function(event) { 53 animatedPages.addEventListener('neon-animation-finish', function(event) {
54 if (animatedPages.selected === 0) { 54 if (animatedPages.selected === 0) {
55 animatedPages.selected = 1; 55 animatedPages.selected = 1;
56 return; 56 return;
57 } 57 }
58 assert.strictEqual(animatedPages.selected, 1); 58 assert.strictEqual(animatedPages.selected, 1);
59 assert.equal(event.detail.fromPage, pages[0]); 59 assert.equal(event.detail.fromPage, pages[0]);
60 assert.equal(event.detail.toPage, pages[1]); 60 assert.equal(event.detail.toPage, pages[1]);
61 assert.isTrue(animatedPages._completeAnimations.calledTwice); 61 assert.isTrue(animatedPages._completeAnimations.calledTwice);
62 var a$ = animatedPages._completeAnimations.getCall(1).args[0]; 62 var a$ = animatedPages._completeAnimations.getCall(1).args[0];
63 assert.isTrue(a$[0].animation.isNeonAnimation, 'default animation is n ot a registered animation'); 63 assert.isTrue(a$[0].animation.isNeonAnimation, 'entry animation is not a registered animation');
64 assert.isTrue(a$[1].animation.isNeonAnimation, 'entry animation is not a registered animation'); 64 assert.isTrue(a$[1].animation.isNeonAnimation, 'exit animation is not a registered animation');
65 assert.isTrue(a$[2].animation.isNeonAnimation, 'exit animation is not a registered animation');
66 done(); 65 done();
67 }); 66 });
68 animatedPages.selected = 0; 67 animatedPages.selected = 0;
69 }); 68 });
70 }); 69 });
71 </script> 70 </script>
72 71
73 </body> 72 </body>
74 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698