Introduce RenderNodeWithChildMixin

R=ianh@google.com

Review URL: https://codereview.chromium.org/1156013003
This commit is contained in:
Adam Barth 2015-05-27 14:31:08 -07:00
parent 37d689c4e8
commit da02cd53bb

View File

@ -32,7 +32,7 @@ void main() {
test("should size to render view", () { test("should size to render view", () {
RenderSizedBox root = new RenderSizedBox(); RenderSizedBox root = new RenderSizedBox();
RenderView renderView = new RenderView(root: root); RenderView renderView = new RenderView(child: root);
renderView.layout(newWidth: sky.view.width, newHeight: sky.view.height); renderView.layout(newWidth: sky.view.width, newHeight: sky.view.height);
expect(root.width, equals(sky.view.width)); expect(root.width, equals(sky.view.width));
expect(root.height, equals(sky.view.height)); expect(root.height, equals(sky.view.height));