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

Side by Side Diff: sky/tests/widgets/buttons.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 unified diff | Download patch
« no previous file with comments | « sky/tests/resources/display_list.dart ('k') | sky/tests/widgets/dialog.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'package:sky/widgets/basic.dart'; 5 import 'package:sky/widgets/basic.dart';
6 import 'package:sky/widgets/flat_button.dart'; 6 import 'package:sky/widgets/flat_button.dart';
7 import 'package:sky/widgets/floating_action_button.dart'; 7 import 'package:sky/widgets/floating_action_button.dart';
8 import 'package:sky/widgets/raised_button.dart'; 8 import 'package:sky/widgets/raised_button.dart';
9 9
10 import '../resources/display_list.dart'; 10 import '../resources/display_list.dart';
11 11
12 main() async { 12 main() async {
13 WidgetTester tester = new WidgetTester(); 13 WidgetTester tester = new WidgetTester();
14 14
15 await tester.test(() { 15 await tester.test(() {
16 return new Center(child: new RaisedButton(child: new Text("ENGAGE"))); 16 return new Center(child: new RaisedButton(child: new Text("ENGAGE")));
17 }); 17 });
18 18
19 await tester.test(() { 19 await tester.test(() {
20 return new Center(child: new FlatButton(child: new Text("ENGAGE"))); 20 return new Center(child: new FlatButton(child: new Text("ENGAGE")));
21 }); 21 });
22 22
23 await tester.test(() { 23 await tester.test(() {
24 return new Center(child: new FloatingActionButton(child: new Text("+"))); 24 return new Center(child: new FloatingActionButton(child: new Text("+")));
25 }); 25 });
26 26
27 await tester.endTest(); 27 tester.endTest();
28 } 28 }
OLDNEW
« no previous file with comments | « sky/tests/resources/display_list.dart ('k') | sky/tests/widgets/dialog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698