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

Unified Diff: sky/tests/widgets/syncs1.dart

Issue 1192003003: Clean up the tests to be more maintainable. (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/tests/widgets/dialog.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/widgets/syncs1.dart
diff --git a/sky/tests/widgets/syncs1.dart b/sky/tests/widgets/syncs1.dart
index 14750eb3981acb23fc2c84284f8208a50a5dae2c..f1e33c5c4d01031a965a592c2b37a9246b8a38e1 100644
--- a/sky/tests/widgets/syncs1.dart
+++ b/sky/tests/widgets/syncs1.dart
@@ -81,20 +81,14 @@ class FiddleApp extends App {
}
}
-main() {
+main() async {
TestRenderView renderViewOverride = new TestRenderView();
FiddleApp app = new FiddleApp();
runApp(app, renderViewOverride: renderViewOverride);
- new Future.microtask(() {
- renderViewOverride.checkFrame();
- app.toggle();
- new Future.microtask(() {
- renderViewOverride.checkFrame();
- app.toggle();
- new Future.microtask(() {
- renderViewOverride.checkFrame();
- renderViewOverride.endTest();
- });
- });
- });
+ await renderViewOverride.checkFrame();
+ app.toggle();
+ await renderViewOverride.checkFrame();
+ app.toggle();
+ await renderViewOverride.checkFrame();
+ renderViewOverride.endTest();
}
« no previous file with comments | « sky/tests/widgets/dialog.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698