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

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

Issue 1192003003: Clean up the tests to be more maintainable. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/framework/stocks-expected.txt ('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 c30fc41604c167a1cfb0be669a8cb69b4de37b3b..bf11645c6f24fa6df580d4c149a948250851ed42 100644
--- a/sky/tests/raw/box_layout.dart
+++ b/sky/tests/raw/box_layout.dart
@@ -7,18 +7,12 @@ import 'package:sky/rendering/box.dart';
import 'package:sky/rendering/object.dart';
import '../resources/display_list.dart';
-import '../resources/third_party/unittest/unittest.dart';
-import '../resources/unit.dart';
void main() {
- initUnit();
-
- test("padding", () {
- 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);
- new TestRenderView(outer);
- });
+ 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);
+ new TestRenderView(outer).endTest();
}
« no previous file with comments | « sky/tests/framework/stocks-expected.txt ('k') | sky/tests/raw/box_layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698