Index: sky/tests/lowlevel/home.sky |
diff --git a/sky/tests/lowlevel/home.sky b/sky/tests/lowlevel/home.sky |
index 381d43caa48c607a91f2e94534e12ba8c8fc45df..c89f9d3dcecbdec6931ea74e2fa9235eb6f1ccc1 100644 |
--- a/sky/tests/lowlevel/home.sky |
+++ b/sky/tests/lowlevel/home.sky |
@@ -6,9 +6,13 @@ |
<div class="h1">about:blank</div> |
<div class="p">Welcome to Sky!</div> |
<script> |
+import "dart:sky" as sky; |
+import "dart:sky.internals" as internals; |
+ |
// Don't use dump-as-render-tree.sky, we want a test with no imports. |
-window.addEventListener('load', function() { |
- internals.notifyTestComplete(internals.renderTreeAsText()); |
-}); |
+void main() { |
+ sky.window.addEventListener('load', (_) => |
+ internals.notifyTestComplete(internals.renderTreeAsText())); |
+} |
</script> |
</div> |