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

Unified Diff: test/iron_list_physical_count_test.dart

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 | « test/iron_list_mutations_test.dart ('k') | test/iron_list_physical_count_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_list_physical_count_test.dart
diff --git a/test/iron_list_physical_count_test.dart b/test/iron_list_physical_count_test.dart
index a279f3826b4c35ee0cdb20ae716f4b4980dac001..dd74ce5c28c90bd5f815dbf86c5576af1e93e7f7 100644
--- a/test/iron_list_physical_count_test.dart
+++ b/test/iron_list_physical_count_test.dart
@@ -33,27 +33,27 @@ main() async {
var lastItem = getLastItemFromList(list);
var lastItemHeight = lastItem.offsetHeight;
var expectedFinalItem = (list.offsetHeight / lastItemHeight).floor();
- expect(lastItemHeight, 1);
+ expect(lastItemHeight, 2);
expect(getLastItemFromList(list).text, expectedFinalItem.toString());
});
});
-
+
test('increase pool size on resize', () async {
list.items = buildDataSet(1000);
-
+
await wait(1);
// change the height of the list
container.set('listHeight', 500);
// resize
- list.fire('resize');
+ list.fire('iron-resize');
await wait(1);
var lastItem = getLastItemFromList(list);
var lastItemHeight = lastItem.offsetHeight;
- int expectedFinalItem = (list.offsetHeight/lastItemHeight - 1).round();
-
- expect(lastItemHeight, 1);
+ int expectedFinalItem = (list.offsetHeight / lastItemHeight).round();
+
+ expect(lastItemHeight, 2);
expect(getLastItemFromList(list).text, '$expectedFinalItem');
- }, skip: 'Fails in test runner since window is <500px tall');
+ });
});
}
« no previous file with comments | « test/iron_list_mutations_test.dart ('k') | test/iron_list_physical_count_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698