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

Unified Diff: sky/tests/examples/stocks.dart

Issue 1182053012: Rename editing2/ and theme2/ to editing/ and theme/. (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/widgets/tool_bar.dart ('k') | sky/tests/examples/stocks-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/examples/stocks.dart
diff --git a/sky/tests/examples/stocks.dart b/sky/tests/examples/stocks.dart
index b00c4844074a55275a5a032f7984b5e93a0262ea..6d014daf0533250a15d62401ce53dabb77835c10 100644
--- a/sky/tests/examples/stocks.dart
+++ b/sky/tests/examples/stocks.dart
@@ -9,9 +9,23 @@ import 'package:sky/widgets/widget.dart';
import '../../examples/stocks2/lib/stock_app.dart';
import '../resources/display_list.dart';
+class TestStocksApp extends StocksApp {
+
+ Completer _completer = new Completer();
+ Future get isMounted => _completer.future;
+
+ void didMount() {
+ super.didMount();
+ _completer.complete();
+ }
+}
+
main() async {
TestRenderView testRenderView = new TestRenderView();
- runApp(new StocksApp(), renderViewOverride: testRenderView);
+ TestStocksApp app = new TestStocksApp();
+ runApp(app, renderViewOverride: testRenderView);
+ await testRenderView.checkFrame();
+ await app.isMounted;
await testRenderView.checkFrame();
testRenderView.endTest();
}
« no previous file with comments | « sky/sdk/lib/widgets/tool_bar.dart ('k') | sky/tests/examples/stocks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698