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

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

Issue 1177383006: Rename all the things (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix imports 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/tests/raw/padding_deflate.dart ('k') | sky/tests/raw/render_flex.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:sky' as sky; 5 import 'dart:sky' as sky;
6 6
7 import 'package:sky/framework/rendering/box.dart'; 7 import 'package:sky/rendering/box.dart';
8 import 'package:sky/framework/rendering/object.dart'; 8 import 'package:sky/rendering/object.dart';
9 9
10 import '../resources/display_list.dart'; 10 import '../resources/display_list.dart';
11 import '../resources/third_party/unittest/unittest.dart'; 11 import '../resources/third_party/unittest/unittest.dart';
12 import '../resources/unit.dart'; 12 import '../resources/unit.dart';
13 13
14 void main() { 14 void main() {
15 initUnit(); 15 initUnit();
16 16
17 test("should size to render view", () { 17 test("should size to render view", () {
18 RenderSizedBox root = new RenderSizedBox( 18 RenderSizedBox root = new RenderSizedBox(
19 child: new RenderDecoratedBox( 19 child: new RenderDecoratedBox(
20 decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF0 0)) 20 decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF0 0))
21 ) 21 )
22 ); 22 );
23 new TestRenderView(root); 23 new TestRenderView(root);
24 expect(root.size.width, equals(sky.view.width)); 24 expect(root.size.width, equals(sky.view.width));
25 expect(root.size.height, equals(sky.view.height)); 25 expect(root.size.height, equals(sky.view.height));
26 }); 26 });
27 } 27 }
OLDNEW
« no previous file with comments | « sky/tests/raw/padding_deflate.dart ('k') | sky/tests/raw/render_flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698