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

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

Issue 1194693002: Adds StyledText (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback, merge 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
Index: sky/tests/examples/styled_text.dart
diff --git a/sky/tests/examples/stocks.dart b/sky/tests/examples/styled_text.dart
similarity index 56%
copy from sky/tests/examples/stocks.dart
copy to sky/tests/examples/styled_text.dart
index 6d014daf0533250a15d62401ce53dabb77835c10..137ec0cd9402126d23b908944bdb87cf12099b3e 100644
--- a/sky/tests/examples/stocks.dart
+++ b/sky/tests/examples/styled_text.dart
@@ -6,26 +6,13 @@ import 'dart:async';
import 'package:sky/widgets/widget.dart';
-import '../../examples/stocks2/lib/stock_app.dart';
+import '../../examples/widgets/styled_text.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();
- TestStocksApp app = new TestStocksApp();
+ StyledTextApp app = new StyledTextApp();
runApp(app, renderViewOverride: testRenderView);
await testRenderView.checkFrame();
- await app.isMounted;
- await testRenderView.checkFrame();
testRenderView.endTest();
}

Powered by Google App Engine
This is Rietveld 408576698