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

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

Issue 1165463002: Make RenderParagraph mutable, and make it fit the new RenderNode protocols (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: git rebase -i 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/layout2.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 '../resources/third_party/unittest/unittest.dart'; 5 import '../resources/third_party/unittest/unittest.dart';
6 import '../resources/unit.dart'; 6 import '../resources/unit.dart';
7 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
8 import 'package:sky/framework/layout2.dart'; 8 import 'package:sky/framework/layout2.dart';
9 9
10 void main() { 10 void main() {
11 initUnit(); 11 initUnit();
12 12
13 test("should size to render view", () { 13 test("should size to render view", () {
14 RenderSizedBox root = new RenderSizedBox( 14 RenderSizedBox root = new RenderSizedBox(
15 new RenderDecoratedBox(new BoxDecoration(backgroundColor: 0xFF00FF00))); 15 child: new RenderDecoratedBox(
16 decoration: new BoxDecoration(backgroundColor: 0xFF00FF00)
17 )
18 );
16 RenderView renderView = new RenderView(child: root); 19 RenderView renderView = new RenderView(child: root);
17 renderView.layout(new ViewConstraints(width: sky.view.width, height: sky.vie w.height)); 20 renderView.layout(new ViewConstraints(width: sky.view.width, height: sky.vie w.height));
18 expect(root.size.width, equals(sky.view.width)); 21 expect(root.size.width, equals(sky.view.width));
19 expect(root.size.height, equals(sky.view.height)); 22 expect(root.size.height, equals(sky.view.height));
20 }); 23 });
21 } 24 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/layout2.dart ('k') | sky/tests/raw/render_flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698