| Index: lib/src/iron-list/test/physical-count.html
|
| diff --git a/lib/src/iron-list/test/physical-count.html b/lib/src/iron-list/test/physical-count.html
|
| index a9f7c2870e5e431923c578c3226eff4c21ef771f..11bcaa9262300fd02b50877b7f282ebbbbef716d 100644
|
| --- a/lib/src/iron-list/test/physical-count.html
|
| +++ b/lib/src/iron-list/test/physical-count.html
|
| @@ -28,7 +28,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| <test-fixture id="trivialList">
|
| <template>
|
| - <x-list item-height="1" list-height="40"></x-list>
|
| + <x-list item-height="2" list-height="300"></x-list>
|
| </template>
|
| </test-fixture>
|
|
|
| @@ -44,12 +44,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| test('increase pool size', function(done) {
|
| list.items = buildDataSet(1000);
|
| +
|
| flush(function() {
|
| var lastItem = getLastItemFromList(list);
|
| var lastItemHeight = lastItem.offsetHeight;
|
| var expectedFinalItem = list.offsetHeight/lastItemHeight;
|
|
|
| - assert.equal(lastItemHeight, 1);
|
| + assert.equal(lastItemHeight, 2);
|
| assert.equal(getLastItemFromList(list).textContent, expectedFinalItem);
|
| done();
|
| });
|
| @@ -57,19 +58,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| test('increase pool size on resize', function(done) {
|
| list.items = buildDataSet(1000);
|
| -
|
| +
|
| flush(function() {
|
| // change the height of the list
|
| container.listHeight = 500;
|
| // resize
|
| - list.fire('resize');
|
| + list.fire('iron-resize');
|
|
|
| flush(function() {
|
| var lastItem = getLastItemFromList(list);
|
| var lastItemHeight = lastItem.offsetHeight;
|
| - var expectedFinalItem = list.offsetHeight/lastItemHeight - 1;
|
| -
|
| - assert.equal(lastItemHeight, 1);
|
| + var expectedFinalItem = list.offsetHeight/lastItemHeight;
|
| +
|
| + assert.equal(lastItemHeight, 2);
|
| assert.equal(getLastItemFromList(list).textContent, expectedFinalItem);
|
| done();
|
| });
|
|
|