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

Side by Side Diff: sky/tests/raw/box_layout.dart

Issue 1162023004: Update BoxDecoration and RenderParagraph to use sky.Color instead of int. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: test expectations 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 unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/framework/rendering/paragraph.dart ('k') | sky/tests/raw/box_layout-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import '../resources/third_party/unittest/unittest.dart'; 1 import '../resources/third_party/unittest/unittest.dart';
2 import '../resources/unit.dart'; 2 import '../resources/unit.dart';
3 import '../resources/display_list.dart'; 3 import '../resources/display_list.dart';
4 import 'dart:math' as math; 4 import 'dart:math' as math;
5 import 'dart:sky' as sky; 5 import 'dart:sky' as sky;
6 import 'package:sky/framework/app.dart'; 6 import 'package:sky/framework/app.dart';
7 import 'package:sky/framework/rendering/box.dart'; 7 import 'package:sky/framework/rendering/box.dart';
8 import 'package:sky/framework/rendering/block.dart'; 8 import 'package:sky/framework/rendering/block.dart';
9 import 'package:sky/framework/rendering/node.dart'; 9 import 'package:sky/framework/rendering/node.dart';
10 10
11 TestApp app; 11 TestApp app;
12 12
13 void main() { 13 void main() {
14 initUnit(); 14 initUnit();
15 15
16 test("padding", () { 16 test("padding", () {
17 var size = new RenderSizedBox(desiredSize: new sky.Size(double.INFINITY, 100 .0)); 17 var size = new RenderSizedBox(desiredSize: new sky.Size(double.INFINITY, 100 .0));
18 var inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundC olor: 0xFF00FF00), child: size); 18 var inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundC olor: const sky.Color(0xFF00FF00)), child: size);
19 var padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inne r); 19 var padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inne r);
20 var block = new RenderBlock(children: [padding]); 20 var block = new RenderBlock(children: [padding]);
21 var outer = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundC olor: 0xFF0000FF), child: block); 21 var outer = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundC olor: const sky.Color(0xFF0000FF)), child: block);
22 app = new TestApp(outer); 22 app = new TestApp(outer);
23 }); 23 });
24 } 24 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/rendering/paragraph.dart ('k') | sky/tests/raw/box_layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698