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 | 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 Loading... |
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> |
OLD | NEW |