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.
25 lines
607 B
Dart
25 lines
607 B
Dart
|
|
import 'package:sky/rendering.dart';
|
|
import 'package:sky/widgets.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'widget_tester.dart';
|
|
|
|
void main() {
|
|
test('LinearProgressIndicator changes when its value changes', () {
|
|
WidgetTester tester = new WidgetTester();
|
|
|
|
tester.pumpFrame(() {
|
|
return new Block([new LinearProgressIndicator(value: 0.0)]);
|
|
});
|
|
List<Layer> layers1 = tester.layers;
|
|
|
|
tester.pumpFrame(() {
|
|
return new Block([new LinearProgressIndicator(value: 0.5)]);
|
|
});
|
|
List<Layer> layers2 = tester.layers;
|
|
|
|
expect(layers1, isNot(equals(layers2)));
|
|
});
|
|
}
|