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

Unified Diff: sky/tests/resources/dump-as-text.sky

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/resources/dump-as-render-tree.sky ('k') | sky/tests/resources/run-after-display.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/dump-as-text.sky
diff --git a/sky/tests/resources/dump-as-text.sky b/sky/tests/resources/dump-as-text.sky
index 5b35f9b6ce12ef13ddc06ab4d7dd3d4f54b6e52f..4effcb5aca1ee8df767eddcd0a310d8284eb999a 100644
--- a/sky/tests/resources/dump-as-text.sky
+++ b/sky/tests/resources/dump-as-text.sky
@@ -1,5 +1,12 @@
<script>
-window.addEventListener('load', function() {
+import "dart:sky" as sky;
+import "dart:sky.internals" as internals;
+
+void handleLoadEvent(event) {
internals.notifyTestComplete(internals.contentAsText());
-});
+}
+
+void init() {
+ sky.window.addEventListener('load', handleLoadEvent);
+}
</script>
« no previous file with comments | « sky/tests/resources/dump-as-render-tree.sky ('k') | sky/tests/resources/run-after-display.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698