Add a Paint::toString() method to describe our Paint objects.

Add a test for RenderDecoratedBox sets up the Paint object correctly.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1185423003.
This commit is contained in:
Matt Perry
2015-06-18 13:47:28 -04:00
parent 259ebc4a8b
commit 4d66e7d0f0
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ void main() {
gradient: new RadialGradient(
center: Point.origin, radius: 500.0,
colors: [Yellow[500], Blue[500]]),
boxShadow: Shadow[3])
boxShadow: shadows[3])
);
var paddedBox = new RenderPadding(
padding: const EdgeDims.all(50.0),