Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for scaffold.of.#.dart API examples. #147637

Merged

Conversation

ksokolovskyi
Copy link
Contributor

This PR contributes to #130459

Description

  • Adds tests for examples/api/lib/material/scaffold/scaffold.of.0.dart
  • Adds tests for examples/api/lib/material/scaffold/scaffold.of.1.dart

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels May 1, 2024
@ksokolovskyi ksokolovskyi force-pushed the add-scaffold-of-examples-tests branch 2 times, most recently from e5f1ced to b2723ce Compare May 1, 2024 19:01
Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for your valuable additions!

For consistency with other example tests and also with framework ones, please apply the following minor changes:

  • remove the group.
  • format all testWidgets to fit on one line (line 12 is ok), do it even when the test description is longer (for instance line 21). In framework test, this is done for readability. If the test description is very long tes, it can be split into several lines (but finding a shorter description is generally better).

It would be great to do the same for your similar open PRs, thanks!

@ksokolovskyi
Copy link
Contributor Author

@bleroux thanks a lot for the suggestions!
I have applied them to all my open PRs.

@ksokolovskyi ksokolovskyi requested a review from bleroux May 8, 2024 15:28
Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ksokolovskyi ksokolovskyi force-pushed the add-scaffold-of-examples-tests branch from a065a2b to 6f7978f Compare May 8, 2024 19:05
@ksokolovskyi
Copy link
Contributor Author

@TahaTesser could you please look at this PR when you have time?

Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TahaTesser TahaTesser added the autosubmit Merge PR when tree becomes green via auto submit App label May 20, 2024
@auto-submit auto-submit bot merged commit 538625a into flutter:master May 20, 2024
138 checks passed
@ksokolovskyi
Copy link
Contributor Author

@bleroux @TahaTesser thanks a lot for the review and merge!

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 20, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 20, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 20, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request May 20, 2024
flutter/flutter@adf279f...02a6c91

2024-05-20 sokolovskyi.konstantin@gmail.com Add test for image.error_builder.0.dart API example. (flutter/flutter#148497)
2024-05-20 engine-flutter-autoroll@skia.org Roll Packages from ae4dd32 to ba19b24 (3 revisions) (flutter/flutter#148679)
2024-05-20 sokolovskyi.konstantin@gmail.com Add test for tab_controller.1.dart API example. (flutter/flutter#148189)
2024-05-20 sokolovskyi.konstantin@gmail.com Add test for fade_transition.0.dart API example. (flutter/flutter#148178)
2024-05-20 sokolovskyi.konstantin@gmail.com Add tests for scaffold.of.#.dart API examples. (flutter/flutter#147637)
2024-05-20 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9d00f77f243f to c6fecf65fbf3 (1 revision) (flutter/flutter#148654)
2024-05-20 engine-flutter-autoroll@skia.org Roll Flutter Engine from 426dbb125861 to 9d00f77f243f (1 revision) (flutter/flutter#148652)
2024-05-19 engine-flutter-autoroll@skia.org Roll Flutter Engine from 552a965b707b to 426dbb125861 (2 revisions) (flutter/flutter#148630)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
…#6776)

flutter/flutter@adf279f...02a6c91

2024-05-20 sokolovskyi.konstantin@gmail.com Add test for image.error_builder.0.dart API example. (flutter/flutter#148497)
2024-05-20 engine-flutter-autoroll@skia.org Roll Packages from ae4dd32 to ba19b24 (3 revisions) (flutter/flutter#148679)
2024-05-20 sokolovskyi.konstantin@gmail.com Add test for tab_controller.1.dart API example. (flutter/flutter#148189)
2024-05-20 sokolovskyi.konstantin@gmail.com Add test for fade_transition.0.dart API example. (flutter/flutter#148178)
2024-05-20 sokolovskyi.konstantin@gmail.com Add tests for scaffold.of.#.dart API examples. (flutter/flutter#147637)
2024-05-20 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9d00f77f243f to c6fecf65fbf3 (1 revision) (flutter/flutter#148654)
2024-05-20 engine-flutter-autoroll@skia.org Roll Flutter Engine from 426dbb125861 to 9d00f77f243f (1 revision) (flutter/flutter#148652)
2024-05-19 engine-flutter-autoroll@skia.org Roll Flutter Engine from 552a965b707b to 426dbb125861 (2 revisions) (flutter/flutter#148630)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants