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

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

Issue 1183913006: Rename AppView to SkyBinding. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/box_layout.dart ('k') | no next file » | 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/app/view.dart';
8 import 'package:sky/rendering/block.dart'; 7 import 'package:sky/rendering/block.dart';
9 import 'package:sky/rendering/box.dart'; 8 import 'package:sky/rendering/box.dart';
10 import 'package:sky/rendering/flex.dart'; 9 import 'package:sky/rendering/flex.dart';
11 10
12 import '../resources/display_list.dart'; 11 import '../resources/display_list.dart';
13 import '../resources/third_party/unittest/unittest.dart'; 12 import '../resources/third_party/unittest/unittest.dart';
14 import '../resources/unit.dart'; 13 import '../resources/unit.dart';
15 14
16 class RenderSolidColor extends RenderDecoratedBox { 15 class RenderSolidColor extends RenderDecoratedBox {
17 final sky.Size desiredSize; 16 final sky.Size desiredSize;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 decoratedRow.parentData.flex = 3; 100 decoratedRow.parentData.flex = 3;
102 101
103 new TestRenderView(root); 102 new TestRenderView(root);
104 103
105 expect(root.size.width, equals(sky.view.width)); 104 expect(root.size.width, equals(sky.view.width));
106 expect(root.size.height, equals(sky.view.height)); 105 expect(root.size.height, equals(sky.view.height));
107 expect(renderBlock.size.width, equals(sky.view.width - 20.0)); 106 expect(renderBlock.size.width, equals(sky.view.width - 20.0));
108 107
109 }); 108 });
110 } 109 }
OLDNEW
« no previous file with comments | « sky/tests/raw/box_layout.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698