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/dialog.dart'; | 6 import 'package:sky/widgets/dialog.dart'; |
7 | 7 |
8 import '../resources/display_list.dart'; | 8 import '../resources/display_list.dart'; |
9 | 9 |
10 main() async { | 10 main() async { |
11 WidgetTester tester = new WidgetTester(); | 11 WidgetTester tester = new WidgetTester(); |
12 | 12 |
13 await tester.test(() { | 13 await tester.test(() { |
14 return new Dialog( | 14 return new Dialog( |
15 title: new Text("I am a title"), | 15 title: new Text("I am a title"), |
16 content: new Text("I am some content"), | 16 content: new Text("I am some content"), |
17 actions: new Text("I am some actions") | 17 actions: [new Text("I am some actions")] |
18 ); | 18 ); |
19 }); | 19 }); |
20 | 20 |
21 tester.endTest(); | 21 tester.endTest(); |
22 } | 22 } |
OLD | NEW |