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

Unified Diff: sky/tests/resources/dump-as-render-tree.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-markup.sky ('k') | sky/tests/resources/dump-as-text.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/dump-as-render-tree.sky
diff --git a/sky/tests/resources/dump-as-render-tree.sky b/sky/tests/resources/dump-as-render-tree.sky
index 1559d09bae57e0305ea07c4a60fbcddd3e93fd4f..0ea5f0399787c3524eb306136a82115c245d59ea 100644
--- a/sky/tests/resources/dump-as-render-tree.sky
+++ b/sky/tests/resources/dump-as-render-tree.sky
@@ -1,5 +1,9 @@
<script>
-window.addEventListener('load', function() {
- internals.notifyTestComplete(internals.renderTreeAsText());
-});
+import "dart:sky" as sky;
+import "dart:sky.internals" as internals;
+
+void init() {
+ sky.window.addEventListener('load', (_) =>
+ internals.notifyTestComplete(internals.renderTreeAsText()));
+}
</script>
« no previous file with comments | « sky/tests/resources/dump-as-markup.sky ('k') | sky/tests/resources/dump-as-text.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698