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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user