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

Unified Diff: sky/sdk/lib/framework/widgets/ui_node.dart

Issue 1177043008: Make it possible to test that the stock app doesn't crash on startup and paints the basic scaffold … (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/sdk/lib/framework/app.dart ('k') | sky/tests/framework/stocks.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/ui_node.dart
diff --git a/sky/sdk/lib/framework/widgets/ui_node.dart b/sky/sdk/lib/framework/widgets/ui_node.dart
index d8d5968fe3ac84b0944c0f51cf70afe5cdbf3b21..44db51f5ca8e8aafb08f338a2ec5611705555997 100644
--- a/sky/sdk/lib/framework/widgets/ui_node.dart
+++ b/sky/sdk/lib/framework/widgets/ui_node.dart
@@ -747,15 +747,15 @@ abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
class UINodeAppView extends AppView {
- UINodeAppView() {
+ UINodeAppView({ RenderView renderViewOverride: null })
+ : super(renderViewOverride: renderViewOverride) {
assert(_appView == null);
}
static UINodeAppView _appView;
static AppView get appView => _appView;
- static void initUINodeAppView() {
- if (_appView == null)
- _appView = new UINodeAppView();
+ static void initUINodeAppView({ RenderView renderViewOverride: null }) {
+ _appView = new UINodeAppView(renderViewOverride: renderViewOverride);
}
void dispatchEvent(sky.Event event, HitTestResult result) {
@@ -778,8 +778,8 @@ class UINodeAppView extends AppView {
abstract class AbstractUINodeRoot extends Component {
- AbstractUINodeRoot() : super(stateful: true) {
- UINodeAppView.initUINodeAppView();
+ AbstractUINodeRoot({ RenderView renderViewOverride }) : super(stateful: true) {
+ UINodeAppView.initUINodeAppView(renderViewOverride: renderViewOverride);
_mounted = true;
_scheduleComponentForRender(this);
}
@@ -800,7 +800,7 @@ abstract class AbstractUINodeRoot extends Component {
abstract class App extends AbstractUINodeRoot {
- App();
+ App({ RenderView renderViewOverride }) : super(renderViewOverride: renderViewOverride);
void _buildIfDirty() {
super._buildIfDirty();
@@ -821,7 +821,7 @@ class RenderObjectToUINodeAdapter extends AbstractUINodeRoot {
RenderObjectToUINodeAdapter(
RenderObjectWithChildMixin<RenderBox> container,
this.builder
- ) : _container = container {
+ ) : _container = container, super() {
assert(builder != null);
}
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/tests/framework/stocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698