Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: sky/tests/raw/render_box.dart

Issue 1185423003: Add a Paint::toString() method to describe our Paint objects. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: abarth Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/raw/box_layout-expected.txt ('k') | sky/tests/raw/render_box-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/raw/render_box.dart
diff --git a/sky/tests/raw/render_box.dart b/sky/tests/raw/render_box.dart
index e01469248cab8643e04599d01f10bd5b31cd700b..09adcb61b3d9872133f73077e112bde889915c47 100644
--- a/sky/tests/raw/render_box.dart
+++ b/sky/tests/raw/render_box.dart
@@ -10,13 +10,20 @@ import 'package:sky/rendering/object.dart';
import '../resources/display_list.dart';
import '../resources/third_party/unittest/unittest.dart';
import '../resources/unit.dart';
+import 'package:sky/theme2/colors.dart';
+import 'package:sky/theme2/shadows.dart';
void main() {
initUnit();
test("should size to render view", () {
RenderBox root = new RenderDecoratedBox(
- decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00))
+ decoration: new BoxDecoration(
+ backgroundColor: const sky.Color(0xFF00FF00),
+ gradient: new RadialGradient(
+ center: Point.origin, radius: 500.0,
+ colors: [Yellow[500], Blue[500]]),
+ boxShadow: shadows[3])
);
new TestRenderView(root);
expect(root.size.width, equals(sky.view.width));
« no previous file with comments | « sky/tests/raw/box_layout-expected.txt ('k') | sky/tests/raw/render_box-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698