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

Side by Side Diff: sky/tests/framework/flights-app.sky

Issue 1023213003: Removing Sky JS Framework tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <sky>
2 <import src="../resources/run-after-display.sky" as="runAfterDisplay" />
3 <import src="/sky/examples/flights-app/flights-app.sky" />
4 <script>
5 var app;
6
7 function imagesLoaded() {
8 var images = app.shadowRoot.querySelectorAll('img');
9 for (var i = 0; i < images.length; i++) {
10 if (!images[i].complete)
11 return false;
12 }
13 return true;
14 }
15
16 function checkImagesLoaded() {
17 if (!imagesLoaded()) {
18 setTimeout(checkImagesLoaded, 10);
19 return;
20 }
21 runAfterDisplay(function() {
22 internals.notifyTestComplete(internals.renderTreeAsText());
23 });
24 }
25
26 addEventListener("load", function() {
27 app = document.createElement("flights-app");
28 document.querySelector("sky").appendChild(app);
29 checkImagesLoaded();
30 });
31 </script>
32 </sky>
OLDNEW
« no previous file with comments | « sky/tests/framework/citylist-scrolled-expected.txt ('k') | sky/tests/framework/flights-app-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698