diff --git a/engine/src/flutter/tests/raw/box_layout.dart b/engine/src/flutter/tests/raw/box_layout.dart index 9ef58a95c4..c30fc41604 100644 --- a/engine/src/flutter/tests/raw/box_layout.dart +++ b/engine/src/flutter/tests/raw/box_layout.dart @@ -14,7 +14,7 @@ void main() { initUnit(); test("padding", () { - var size = new RenderSizedBox(desiredSize: new sky.Size(double.INFINITY, 100.0)); + var size = new RenderConstrainedBox(additionalConstraints: new BoxConstraints().applyHeight(100.0)); var inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), child: size); var padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inner); var block = new RenderBlock(children: [padding]); diff --git a/engine/src/flutter/tests/raw/render_box-expected.txt b/engine/src/flutter/tests/raw/render_box-expected.txt index 4e08ce8916..1e25fc901a 100644 --- a/engine/src/flutter/tests/raw/render_box-expected.txt +++ b/engine/src/flutter/tests/raw/render_box-expected.txt @@ -3,7 +3,7 @@ CONSOLE: TestRenderView enabled CONSOLE: PAINT FOR FRAME #1 ---------------------------------------------- 1 | TestDisplayList() constructor: 800.0 x 600.0 -1 | paintChild RenderSizedBox at Point(0.0, 0.0) +1 | paintChild RenderDecoratedBox at Point(0.0, 0.0) 1 | | TestDisplayList() constructor: 800.0 x 600.0 1 | | drawRect(Rect.fromLTRB(0.0, 0.0, 800.0, 600.0), Paint(Color(0xff00ff00))) ------------------------------------------------------------------------ diff --git a/engine/src/flutter/tests/raw/render_box.dart b/engine/src/flutter/tests/raw/render_box.dart index b94b466c89..e01469248c 100644 --- a/engine/src/flutter/tests/raw/render_box.dart +++ b/engine/src/flutter/tests/raw/render_box.dart @@ -15,10 +15,8 @@ void main() { initUnit(); test("should size to render view", () { - RenderSizedBox root = new RenderSizedBox( - child: new RenderDecoratedBox( - decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)) - ) + RenderBox root = new RenderDecoratedBox( + decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)) ); new TestRenderView(root); expect(root.size.width, equals(sky.view.width));