From 94c76c991422eb7567576e18895408d327a3eec7 Mon Sep 17 00:00:00 2001 From: Hixie Date: Thu, 4 Jun 2015 10:50:59 -0700 Subject: [PATCH] Enable RenderDecoratedBox to draw borders. Currently supports only solid borders, but of any colour and size, independently controlling each side. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1154903006 --- engine/src/flutter/tests/raw/padding_deflate.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/tests/raw/padding_deflate.dart b/engine/src/flutter/tests/raw/padding_deflate.dart index ffda37cfab..e1996d8764 100644 --- a/engine/src/flutter/tests/raw/padding_deflate.dart +++ b/engine/src/flutter/tests/raw/padding_deflate.dart @@ -12,10 +12,13 @@ void main() { initUnit(); test("should not have a 0 sized colored Box", () { - var coloredBox = new RenderDecoratedBox(); + var coloredBox = new RenderDecoratedBox( + decoration: new BoxDecoration() + ); var paddingBox = new RenderPadding(padding: const EdgeDims.all(10.0), child: coloredBox); RenderBox root = new RenderDecoratedBox( + decoration: new BoxDecoration(), child: paddingBox ); TestView renderView = new TestView(child: root);