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

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

Issue 1232063006: Remove "RenderBlock" class from examples that use it without giving it unrestricted height. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/sdk/example/rendering/flex.dart ('k') | sky/tests/raw/box_layout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/raw/box_layout.dart
diff --git a/sky/tests/raw/box_layout.dart b/sky/tests/raw/box_layout.dart
index 64b7c9b61ca9304989addcec9968417ca8e2b3c1..660d5446b92c6255579a453af0dd13cd83e4ceff 100644
--- a/sky/tests/raw/box_layout.dart
+++ b/sky/tests/raw/box_layout.dart
@@ -1,17 +1,17 @@
import 'dart:math' as math;
import 'dart:sky' as sky;
-import 'package:sky/rendering/block.dart';
import 'package:sky/rendering/box.dart';
+import 'package:sky/rendering/flex.dart';
import 'package:sky/rendering/object.dart';
import '../resources/display_list.dart';
void main() {
- var size = new RenderConstrainedBox(additionalConstraints: new BoxConstraints().applyHeight(100.0));
- var inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), child: size);
- var padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inner);
- var block = new RenderBlock(children: [padding]);
- var outer = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF0000FF)), child: block);
+ RenderBox size = new RenderConstrainedBox(additionalConstraints: new BoxConstraints().applyHeight(100.0));
+ RenderBox inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), child: size);
+ RenderBox padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inner);
+ RenderBox flex = new RenderFlex(children: [padding], direction: FlexDirection.vertical, alignItems: FlexAlignItems.stretch);
+ RenderBox outer = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF0000FF)), child: flex);
new TestRenderView(outer).endTest();
}
« no previous file with comments | « sky/sdk/example/rendering/flex.dart ('k') | sky/tests/raw/box_layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698