Introduce RenderNodeWithChildMixin
R=ianh@google.com Review URL: https://codereview.chromium.org/1156013003
This commit is contained in:
parent
37d689c4e8
commit
da02cd53bb
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user