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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/widgets/buttons.dart
diff --git a/sky/tests/widgets/buttons.dart b/sky/tests/widgets/buttons.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0b5de6e71bba6cca2109817eacc3554f59b141ba
--- /dev/null
+++ b/sky/tests/widgets/buttons.dart
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:sky/widgets/basic.dart';
+import 'package:sky/widgets/flat_button.dart';
+import 'package:sky/widgets/floating_action_button.dart';
+import 'package:sky/widgets/raised_button.dart';
+
+import '../resources/display_list.dart';
+
+main() async {
+ WidgetTester tester = new WidgetTester();
+
+ await tester.test(() {
+ return new Center(child: new RaisedButton(child: new Text("ENGAGE")));
+ });
+
+ await tester.test(() {
+ return new Center(child: new FlatButton(child: new Text("ENGAGE")));
+ });
+
+ await tester.test(() {
+ return new Center(child: new FloatingActionButton(child: new Text("+")));
+ });
+
+ await tester.endTest();
+}
« 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