Merge pull request #855 from abarth/big_circle_test

Turn big_circle.dart into a test
This commit is contained in:
Adam Barth 2015-08-26 11:20:36 -07:00
commit ea2ff27356
2 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@ import 'package:test/test.dart';
import 'build_utils.dart';
void main() {
test('Global key mutate during iteration', () {
test('Align smoke test', () {
WidgetTester tester = new WidgetTester();
tester.pumpFrame(() {

View File

@ -1,23 +1,23 @@
// 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/widgets.dart';
import 'package:test/test.dart';
class BigCircleApp extends App {
Widget build() {
return new Container(
import 'build_utils.dart';
void main() {
test('Circles can have uniform borders', () {
WidgetTester tester = new WidgetTester();
tester.pumpFrame(() {
return new Container(
padding: new EdgeDims.all(50.0),
decoration: new BoxDecoration(
shape: Shape.circle,
border: new Border.all(width: 10.0, color: const Color(0x80FF00FF)),
backgroundColor: colors.Teal[600]
)
);
}
}
);
});
void main() {
runApp(new BigCircleApp());
});
}