mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
28 lines
512 B
Dart
28 lines
512 B
Dart
import 'package:sky/widgets.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'build_utils.dart';
|
|
|
|
void main() {
|
|
test('Global key mutate during iteration', () {
|
|
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
|
|
);
|
|
});
|
|
|
|
});
|
|
}
|