Auto-format Framework (#160545)
This auto-formats all *.dart files in the repository outside of the `engine` subdirectory and enforces that these files stay formatted with a presubmit check. **Reviewers:** Please carefully review all the commits except for the one titled "formatted". The "formatted" commit was auto-generated by running `dev/tools/format.sh -a -f`. The other commits were hand-crafted to prepare the repo for the formatting change. I recommend reviewing the commits one-by-one via the "Commits" tab and avoiding Github's "Files changed" tab as it will likely slow down your browser because of the size of this PR. --------- Co-authored-by: Kate Lovett <katelovett@google.com> Co-authored-by: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8e0993eda8
commit
5491c8c146
@@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.FlexibleRouteTransitionsApp(),
|
||||
);
|
||||
await tester.pumpWidget(const example.FlexibleRouteTransitionsApp());
|
||||
|
||||
expect(find.text('Zoom Page'), findsOneWidget);
|
||||
expect(find.text('Zoom Transition'), findsOneWidget);
|
||||
@@ -24,10 +22,10 @@ void main() {
|
||||
expect(find.text('Cupertino Page'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('A vertical slide animation is passed to the previous route', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.FlexibleRouteTransitionsApp(),
|
||||
);
|
||||
testWidgets('A vertical slide animation is passed to the previous route', (
|
||||
WidgetTester tester,
|
||||
) async {
|
||||
await tester.pumpWidget(const example.FlexibleRouteTransitionsApp());
|
||||
|
||||
expect(find.text('Zoom Page'), findsOneWidget);
|
||||
|
||||
|
||||
@@ -10,9 +10,7 @@ import '../navigator_utils.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
FlexibleRouteTransitionsApp(),
|
||||
);
|
||||
await tester.pumpWidget(FlexibleRouteTransitionsApp());
|
||||
|
||||
expect(find.text('Zoom Transition'), findsOneWidget);
|
||||
expect(find.text('Crazy Vertical Transition'), findsOneWidget);
|
||||
@@ -20,9 +18,7 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('on Pop the correct page shows', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
FlexibleRouteTransitionsApp(),
|
||||
);
|
||||
await tester.pumpWidget(FlexibleRouteTransitionsApp());
|
||||
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
@@ -11,9 +11,7 @@ void main() {
|
||||
testWidgets('Dismiss dialog with tap on the scrim and escape key', (WidgetTester tester) async {
|
||||
const String dialogText = 'Tap in the scrim or press escape key to dismiss.';
|
||||
|
||||
await tester.pumpWidget(
|
||||
const example.PopupRouteApp(),
|
||||
);
|
||||
await tester.pumpWidget(const example.PopupRouteApp());
|
||||
|
||||
expect(find.text(dialogText), findsNothing);
|
||||
|
||||
|
||||
@@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('RouteObserver notifies RouteAware widget', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
const example.RouteObserverApp(),
|
||||
);
|
||||
await tester.pumpWidget(const example.RouteObserverApp());
|
||||
|
||||
// Check the initial RouteObserver logs.
|
||||
expect(find.text('didPush'), findsOneWidget);
|
||||
|
||||
@@ -10,9 +10,7 @@ void main() {
|
||||
testWidgets('Open and dismiss general dialog', (WidgetTester tester) async {
|
||||
const String dialogText = 'Alert!';
|
||||
|
||||
await tester.pumpWidget(
|
||||
const example.GeneralDialogApp(),
|
||||
);
|
||||
await tester.pumpWidget(const example.GeneralDialogApp());
|
||||
|
||||
expect(find.text(dialogText), findsNothing);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user