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 <p class="h1">about:blank</p> |
7 <div class="p">Welcome to Sky!</div> | 7 <p class="p">Welcome to Sky!</p> |
8 <script> | 8 <script> |
9 import "dart:sky" as sky; | 9 import "dart:sky" as sky; |
10 import "dart:sky.internals" as internals; | 10 import "dart:sky.internals" as internals; |
11 | 11 |
12 // 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. |
13 void main() { | 13 void main() { |
14 sky.window.addEventListener('load', (_) => | 14 sky.window.addEventListener('load', (_) => |
15 internals.notifyTestComplete(internals.renderTreeAsText())); | 15 internals.notifyTestComplete(internals.renderTreeAsText())); |
16 } | 16 } |
17 </script> | 17 </script> |
18 </div> | 18 </div> |
OLD | NEW |