Index: sky/tests/raw/padding_deflate.dart |
diff --git a/sky/tests/raw/padding_deflate.dart b/sky/tests/raw/padding_deflate.dart |
index 091db772f8e2fe6cfb3933d824486b2305f556af..80533cd1671c6e187d11ea34757cd8ff9d815041 100644 |
--- a/sky/tests/raw/padding_deflate.dart |
+++ b/sky/tests/raw/padding_deflate.dart |
@@ -3,12 +3,14 @@ |
// found in the LICENSE file. |
import 'dart:sky' as sky; |
-import '../resources/third_party/unittest/unittest.dart'; |
-import '../resources/unit.dart'; |
-import '../resources/display_list.dart'; |
+ |
import 'package:sky/framework/rendering/box.dart'; |
import 'package:sky/framework/rendering/object.dart'; |
+import '../resources/display_list.dart'; |
+import '../resources/third_party/unittest/unittest.dart'; |
+import '../resources/unit.dart'; |
+ |
void main() { |
initUnit(); |
@@ -22,11 +24,7 @@ void main() { |
decoration: new BoxDecoration(), |
child: paddingBox |
); |
- TestView renderView = new TestView(child: root); |
- renderView.attach(); |
- renderView.rootConstraints = new ViewConstraints(width: sky.view.width, height: sky.view.height); |
- renderView.scheduleInitialLayout(); |
- RenderObject.flushLayout(); |
+ new TestRenderView(root); |
expect(coloredBox.size.width, equals(sky.view.width - 20)); |
expect(coloredBox.size.height, equals(sky.view.height - 20)); |
}); |