Index: sky/tests/framework/citylist-scrolled.sky |
diff --git a/sky/tests/framework/citylist-scrolled.sky b/sky/tests/framework/citylist-scrolled.sky |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6216888a6b5c34fd25c7ae7bd136b0a8ee6643cd |
--- /dev/null |
+++ b/sky/tests/framework/citylist-scrolled.sky |
@@ -0,0 +1,19 @@ |
+<html> |
+<import src="/sky/examples/city-list/city-list.sky" /> |
+<city-list></city-list> |
+<script> |
+var cityList = document.querySelector('city-list'); |
+var scrolled = false |
+cityList.addEventListener('load', function() { |
+ if (scrolled) { |
+ internals.notifyTestComplete(internals.renderTreeAsText()); |
+ } else { |
+ scrolled = true; |
+ setTimeout(function() { |
+ cityList.scrollerElement.scrollTop = 200; |
+ cityList.handleScroll({ target: cityList.scrollerElement }); |
+ }, 0); |
+ } |
+}); |
+</script> |
+</html> |