OLD | NEW |
1 <import src="../resources/dump-as-render-tree.sky" /> | 1 <import src="../resources/dump-as-render-tree.sky" /> |
2 | 2 |
3 <block>hello</block> | 3 <block>hello</block> |
4 | 4 |
5 <script> | 5 <script> |
6 import 'dart:sky'; | 6 import 'dart:sky'; |
7 | 7 |
8 void main() { | 8 void main() { |
9 // This tests custom layout of text nodes inside non-paragraphs. | 9 // This tests custom layout of text nodes inside non-paragraphs. |
10 // They shouldn't show up in the render tree at all, so they | 10 // They shouldn't show up in the render tree at all, so they |
11 // don't need laying out. | 11 // don't need laying out. |
12 // This test passes if it doesn't crash and the render tree | 12 // This test passes if it doesn't crash and the render tree |
13 // has no RenderTexts. | 13 // has no RenderTexts. |
14 document.querySelector('block').setLayoutManager(() => {}); | 14 document.querySelector('block').setLayoutManager(() {}, () {}); |
15 } | 15 } |
16 </script> | 16 </script> |
OLD | NEW |