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

Side by Side Diff: lib/src/iron-list/test/hidden-list.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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
« no previous file with comments | « lib/src/iron-list/test/helpers.html ('k') | lib/src/iron-list/test/mutations.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS
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 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS
10 --> 10 -->
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 test('list size', function(done) { 45 test('list size', function(done) {
46 list.items = buildDataSet(100); 46 list.items = buildDataSet(100);
47 flush(function() { 47 flush(function() {
48 assert.equal(list.offsetWidth, 0); 48 assert.equal(list.offsetWidth, 0);
49 assert.equal(list.offsetHeight, 0); 49 assert.equal(list.offsetHeight, 0);
50 done(); 50 done();
51 }); 51 });
52 }); 52 });
53 53
54 test('resize', function(done) { 54 test('iron-resize', function(done) {
55 list.items = buildDataSet(100); 55 list.items = buildDataSet(100);
56 list.fire('resize'); 56 list.fire('iron-resize');
57 57
58 assert.notEqual(getFirstItemFromList(list).textContent, '0'); 58 assert.notEqual(getFirstItemFromList(list).textContent, '0');
59 Polymer.RenderStatus.whenReady(function() { 59 Polymer.RenderStatus.whenReady(function() {
60 container.removeAttribute('hidden'); 60 container.removeAttribute('hidden');
61 assert.notEqual(getFirstItemFromList(list).textContent, '0'); 61 assert.notEqual(getFirstItemFromList(list).textContent, '0');
62 list.fire('resize'); 62 list.fire('iron-resize');
63 flush(function() { 63 flush(function() {
64 assert.isTrue(list.isAttached); 64 assert.isTrue(list.isAttached);
65 assert.equal(getFirstItemFromList(list).textContent, '0'); 65 assert.equal(getFirstItemFromList(list).textContent, '0');
66 done(); 66 done();
67 }); 67 });
68 }); 68 });
69 }); 69 });
70 70
71 }); 71 });
72 72
73 </script> 73 </script>
74 74
75 </body> 75 </body>
76 </html> 76 </html>
OLDNEW
« no previous file with comments | « lib/src/iron-list/test/helpers.html ('k') | lib/src/iron-list/test/mutations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698