mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
- removes the unit testing framework from tests that don't use it - use 'async' where that makes the code less convoluted R=abarth@chromium.org Review URL: https://codereview.chromium.org/1192003003.
29 lines
808 B
Dart
29 lines
808 B
Dart
// 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("+")));
|
|
});
|
|
|
|
tester.endTest();
|
|
}
|