Merge pull request #855 from abarth/big_circle_test
Turn big_circle.dart into a test
This commit is contained in:
commit
ea2ff27356
@ -4,7 +4,7 @@ import 'package:test/test.dart';
|
|||||||
import 'build_utils.dart';
|
import 'build_utils.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
test('Global key mutate during iteration', () {
|
test('Align smoke test', () {
|
||||||
WidgetTester tester = new WidgetTester();
|
WidgetTester tester = new WidgetTester();
|
||||||
|
|
||||||
tester.pumpFrame(() {
|
tester.pumpFrame(() {
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
// 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.dart';
|
|
||||||
import 'package:sky/theme/colors.dart' as colors;
|
import 'package:sky/theme/colors.dart' as colors;
|
||||||
|
import 'package:sky/widgets.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
class BigCircleApp extends App {
|
import 'build_utils.dart';
|
||||||
Widget build() {
|
|
||||||
|
void main() {
|
||||||
|
test('Circles can have uniform borders', () {
|
||||||
|
WidgetTester tester = new WidgetTester();
|
||||||
|
|
||||||
|
tester.pumpFrame(() {
|
||||||
return new Container(
|
return new Container(
|
||||||
padding: new EdgeDims.all(50.0),
|
padding: new EdgeDims.all(50.0),
|
||||||
decoration: new BoxDecoration(
|
decoration: new BoxDecoration(
|
||||||
@ -15,9 +17,7 @@ class BigCircleApp extends App {
|
|||||||
backgroundColor: colors.Teal[600]
|
backgroundColor: colors.Teal[600]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
});
|
||||||
runApp(new BigCircleApp());
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user