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

Unified Diff: sky/tests/framework/stocks.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/widgets/ui_node.dart ('k') | sky/tests/framework/stocks-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/framework/stocks.dart
diff --git a/sky/tests/framework/stocks.dart b/sky/tests/framework/stocks.dart
new file mode 100644
index 0000000000000000000000000000000000000000..401f12f7e5b7fb56d53e69db2b5f14545bc48282
--- /dev/null
+++ b/sky/tests/framework/stocks.dart
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'dart:async';
+
+import 'package:sky/framework/app.dart';
+import 'package:sky/framework/widgets/ui_node.dart';
+
+import '../../examples/stocks2/lib/stock_app.dart';
+import '../resources/display_list.dart';
+import '../resources/third_party/unittest/unittest.dart';
+import '../resources/unit.dart';
+
+void main() {
+ initUnit();
+
+ TestRenderView testRenderView = new TestRenderView();
+
+ test("launching stock app", () {
+ new StocksApp(renderViewOverride: testRenderView);
+ new Future.microtask(testRenderView.checkFrame);
+ });
+}
« no previous file with comments | « sky/sdk/lib/framework/widgets/ui_node.dart ('k') | sky/tests/framework/stocks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698