OLD | NEW |
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 } |
OLD | NEW |