mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Also, rename build_utils.dart to widget_tester.dart. These files are now named for their most commonly used classes. Finally, add a .analysis_options to silence the (intentional) analyzer warnings in append_child_test.dart.
28 lines
496 B
Dart
28 lines
496 B
Dart
import 'package:sky/widgets.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'widget_tester.dart';
|
|
|
|
void main() {
|
|
test('Align smoke test', () {
|
|
WidgetTester tester = new WidgetTester();
|
|
|
|
tester.pumpFrame(() {
|
|
return new Align(
|
|
child: new Container(),
|
|
horizontal: 0.75,
|
|
vertical: 0.75
|
|
);
|
|
});
|
|
|
|
tester.pumpFrame(() {
|
|
return new Align(
|
|
child: new Container(),
|
|
horizontal: 0.5,
|
|
vertical: 0.5
|
|
);
|
|
});
|
|
|
|
});
|
|
}
|