Commit 4d66e7d0 authored by Matt Perry's avatar Matt Perry

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.
parent 259ebc4a
...@@ -17,7 +17,7 @@ void beginFrame(double timeStamp) { ...@@ -17,7 +17,7 @@ void beginFrame(double timeStamp) {
new DrawLooperLayerInfo() new DrawLooperLayerInfo()
..setPaintBits(PaintBits.all) ..setPaintBits(PaintBits.all)
..setOffset(const Point(5.0, 5.0)) ..setOffset(const Point(5.0, 5.0))
..setColorMode(TransferMode.srcIn), ..setColorMode(TransferMode.src),
(Paint layerPaint) { (Paint layerPaint) {
layerPaint.color = const Color.fromARGB(128, 55, 55, 55); layerPaint.color = const Color.fromARGB(128, 55, 55, 55);
layerPaint.setMaskFilter( layerPaint.setMaskFilter(
......
...@@ -16,7 +16,7 @@ void main() { ...@@ -16,7 +16,7 @@ void main() {
gradient: new RadialGradient( gradient: new RadialGradient(
center: Point.origin, radius: 500.0, center: Point.origin, radius: 500.0,
colors: [Yellow[500], Blue[500]]), colors: [Yellow[500], Blue[500]]),
boxShadow: Shadow[3]) boxShadow: shadows[3])
); );
var paddedBox = new RenderPadding( var paddedBox = new RenderPadding(
padding: const EdgeDims.all(50.0), padding: const EdgeDims.all(50.0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment