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

Unified Diff: lib/src/iron-list/test/mutations.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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/iron-list/test/hidden-list.html ('k') | lib/src/iron-list/test/physical-count.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « lib/src/iron-list/test/hidden-list.html ('k') | lib/src/iron-list/test/physical-count.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698