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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/framework/flights-app.sky
diff --git a/sky/tests/framework/flights-app.sky b/sky/tests/framework/flights-app.sky
deleted file mode 100644
index 826ab772913446f09b7f44ac997e46a8d0f111c6..0000000000000000000000000000000000000000
--- a/sky/tests/framework/flights-app.sky
+++ /dev/null
@@ -1,32 +0,0 @@
-<sky>
- <import src="../resources/run-after-display.sky" as="runAfterDisplay" />
- <import src="/sky/examples/flights-app/flights-app.sky" />
- <script>
- var app;
-
- function imagesLoaded() {
- var images = app.shadowRoot.querySelectorAll('img');
- for (var i = 0; i < images.length; i++) {
- if (!images[i].complete)
- return false;
- }
- return true;
- }
-
- function checkImagesLoaded() {
- if (!imagesLoaded()) {
- setTimeout(checkImagesLoaded, 10);
- return;
- }
- runAfterDisplay(function() {
- internals.notifyTestComplete(internals.renderTreeAsText());
- });
- }
-
- addEventListener("load", function() {
- app = document.createElement("flights-app");
- document.querySelector("sky").appendChild(app);
- checkImagesLoaded();
- });
- </script>
-</sky>
« 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