OLD | NEW |
1 <div> | 1 <div> |
2 <style> | 2 <style> |
3 .h1 { font-size: 2em; margin: 1em; } | 3 .h1 { font-size: 2em; margin: 1em; } |
4 .p { margin: 0.5em 1em; color: #bcd8f5; font-weight: 900; } | 4 .p { margin: 0.5em 1em; color: #bcd8f5; font-weight: 900; } |
5 </style> | 5 </style> |
6 <div class="h1">about:blank</div> | 6 <div class="h1">about:blank</div> |
7 <div class="p">Welcome to Sky!</div> | 7 <div class="p">Welcome to Sky!</div> |
8 <script> | 8 <script> |
| 9 import "dart:sky" as sky; |
| 10 import "dart:sky.internals" as internals; |
| 11 |
9 // Don't use dump-as-render-tree.sky, we want a test with no imports. | 12 // Don't use dump-as-render-tree.sky, we want a test with no imports. |
10 window.addEventListener('load', function() { | 13 void main() { |
11 internals.notifyTestComplete(internals.renderTreeAsText()); | 14 sky.window.addEventListener('load', (_) => |
12 }); | 15 internals.notifyTestComplete(internals.renderTreeAsText())); |
| 16 } |
13 </script> | 17 </script> |
14 </div> | 18 </div> |
OLD | NEW |