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

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

Issue 1172123003: Fix the Sky tests (Closed) Base URL: git@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/sdk/lib/framework/rendering/object.dart ('k') | sky/tests/raw/render_box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/raw/padding_deflate.dart
diff --git a/sky/tests/raw/padding_deflate.dart b/sky/tests/raw/padding_deflate.dart
index e1996d8764093b1b064a8d2d0f81bbcc5b924af6..091db772f8e2fe6cfb3933d824486b2305f556af 100644
--- a/sky/tests/raw/padding_deflate.dart
+++ b/sky/tests/raw/padding_deflate.dart
@@ -7,6 +7,7 @@ import '../resources/third_party/unittest/unittest.dart';
import '../resources/unit.dart';
import '../resources/display_list.dart';
import 'package:sky/framework/rendering/box.dart';
+import 'package:sky/framework/rendering/object.dart';
void main() {
initUnit();
@@ -22,7 +23,10 @@ void main() {
child: paddingBox
);
TestView renderView = new TestView(child: root);
- renderView.layout(new ViewConstraints(width: sky.view.width, height: sky.view.height));
+ renderView.attach();
+ renderView.rootConstraints = new ViewConstraints(width: sky.view.width, height: sky.view.height);
+ renderView.scheduleInitialLayout();
+ RenderObject.flushLayout();
expect(coloredBox.size.width, equals(sky.view.width - 20));
expect(coloredBox.size.height, equals(sky.view.height - 20));
});
« no previous file with comments | « sky/sdk/lib/framework/rendering/object.dart ('k') | sky/tests/raw/render_box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698