OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <import src="/sky/examples/city-list/city-list.sky" /> | |
3 <city-list></city-list> | |
4 <script> | |
5 var cityList = document.querySelector('city-list'); | |
6 var scrolled = false | |
7 cityList.addEventListener('load', function() { | |
8 if (scrolled) { | |
9 internals.notifyTestComplete(internals.renderTreeAsText()); | |
10 } else { | |
11 scrolled = true; | |
12 setTimeout(function() { | |
13 cityList.scrollerElement.scrollTop = 200; | |
14 cityList.handleScroll({ target: cityList.scrollerElement }); | |
15 }, 0); | |
16 } | |
17 }); | |
18 </script> | |
19 </html> | |
OLD | NEW |