| 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();
|
| }
|
|
|