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

Side by Side Diff: sky/tests/widgets/buttons.dart

Issue 1193453005: Add some basic tests for the material buttons (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Less boilerplate 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/buttons-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 import 'package:sky/widgets/basic.dart';
6 import 'package:sky/widgets/flat_button.dart';
7 import 'package:sky/widgets/floating_action_button.dart';
8 import 'package:sky/widgets/raised_button.dart';
9
10 import '../resources/display_list.dart';
11
12 main() async {
13 WidgetTester tester = new WidgetTester();
14
15 await tester.test(() {
16 return new Center(child: new RaisedButton(child: new Text("ENGAGE")));
17 });
18
19 await tester.test(() {
20 return new Center(child: new FlatButton(child: new Text("ENGAGE")));
21 });
22
23 await tester.test(() {
24 return new Center(child: new FloatingActionButton(child: new Text("+")));
25 });
26
27 await tester.endTest();
28 }
OLDNEW
« no previous file with comments | « sky/tests/resources/display_list.dart ('k') | sky/tests/widgets/buttons-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698