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

Unified Diff: sky/tests/framework/stocks.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 | « no previous file | 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
index 69922b7fca67ec2b374c226562eff5d602619ff1..ac99398f2478d18e1fb961bdceeca824e08e42e4 100644
--- a/sky/tests/framework/stocks.dart
+++ b/sky/tests/framework/stocks.dart
@@ -9,16 +9,10 @@ import 'package:sky/widgets/widget.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();
+main() async {
TestRenderView testRenderView = new TestRenderView();
-
- test("launching stock app", () {
- runApp(new StocksApp(), renderViewOverride: testRenderView);
- new Future.microtask(testRenderView.checkFrame);
- });
+ runApp(new StocksApp(), renderViewOverride: testRenderView);
+ await testRenderView.checkFrame();
+ testRenderView.endTest();
}
« no previous file with comments | « no previous file | sky/tests/framework/stocks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698