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';
|
||||
|
||||
void main() {
|
||||
test('Global key mutate during iteration', () {
|
||||
test('Align smoke test', () {
|
||||
WidgetTester tester = new WidgetTester();
|
||||
|
||||
tester.pumpFrame(() {
|
||||
|
@ -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());
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user