OLD | NEW |
1 | 1 |
2 import 'dart:sky' as sky; | 2 import 'dart:sky' as sky; |
3 | 3 |
4 import 'package:sky/framework/rendering/box.dart'; | 4 import 'package:sky/rendering/box.dart'; |
5 import 'package:sky/framework/rendering/object.dart'; | 5 import 'package:sky/rendering/object.dart'; |
6 | 6 |
7 typedef void Logger (String s); | 7 typedef void Logger (String s); |
8 | 8 |
9 class TestDisplayList extends RenderObjectDisplayList { | 9 class TestDisplayList extends RenderObjectDisplayList { |
10 TestDisplayList(double width, double height, this.logger, { this.indent: '' })
: | 10 TestDisplayList(double width, double height, this.logger, { this.indent: '' })
: |
11 this.width = width, | 11 this.width = width, |
12 this.height = height, | 12 this.height = height, |
13 super(width, height) { | 13 super(width, height) { |
14 log("TestDisplayList() constructor: $width x $height"); | 14 log("TestDisplayList() constructor: $width x $height"); |
15 } | 15 } |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 RenderObject.debugDoingPaint = false; | 142 RenderObject.debugDoingPaint = false; |
143 } | 143 } |
144 | 144 |
145 void checkFrame() { | 145 void checkFrame() { |
146 RenderObject.flushLayout(); | 146 RenderObject.flushLayout(); |
147 paintFrame(); | 147 paintFrame(); |
148 print(lastPaint); // TODO(ianh): figure out how to make this fit the unit te
sting framework better | 148 print(lastPaint); // TODO(ianh): figure out how to make this fit the unit te
sting framework better |
149 } | 149 } |
150 | 150 |
151 } | 151 } |
OLD | NEW |