| Index: lib/src/iron-list/test/mutations.html
|
| diff --git a/lib/src/iron-list/test/mutations.html b/lib/src/iron-list/test/mutations.html
|
| index a432fe195df9f90edd52ae57959a512f1756e2d9..8f9dbd80fbc9e366020629409aa0f4f001b25955 100644
|
| --- a/lib/src/iron-list/test/mutations.html
|
| +++ b/lib/src/iron-list/test/mutations.html
|
| @@ -154,6 +154,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| done();
|
| });
|
| });
|
| +
|
| + test('delete item and scroll to bottom', function() {
|
| + var setSize = 100, index;
|
| +
|
| + list.items = buildDataSet(setSize);
|
| +
|
| + while (list.items.length > 10) {
|
| + index = parseInt(list.items.length * Math.random());
|
| + list.arrayDelete('items', list.items[index]);
|
| + list.scrollToIndex(list.items.length - 1);
|
| + assert.isTrue(/^[0-9]*$/.test(getFirstItemFromList(list).textContent));
|
| + }
|
| + });
|
| +
|
| });
|
| </script>
|
|
|
|
|