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> |