Skip to content

Use local semantics tester in Material button tests#186667

Merged
auto-submit[bot] merged 11 commits into
flutter:masterfrom
MarlonJD:material-button-semantics-imports
May 27, 2026
Merged

Use local semantics tester in Material button tests#186667
auto-submit[bot] merged 11 commits into
flutter:masterfrom
MarlonJD:material-button-semantics-imports

Conversation

@MarlonJD

@MarlonJD MarlonJD commented May 18, 2026

Copy link
Copy Markdown
Contributor

Part of #182636.

Switches the Material button test files that already have a local semantics_tester.dart copy from importing ../widgets/semantics_tester.dart to importing the local Material test utility. This removes another small set of cross-library test utility imports ahead of the Material/Cupertino package split.

Validation:

  • dart analyze packages/flutter/test/material/elevated_button_test.dart packages/flutter/test/material/filled_button_test.dart packages/flutter/test/material/material_button_test.dart packages/flutter/test/material/outlined_button_test.dart packages/flutter/test/material/text_button_test.dart
  • flutter test packages/flutter/test/material/elevated_button_test.dart packages/flutter/test/material/filled_button_test.dart packages/flutter/test/material/material_button_test.dart packages/flutter/test/material/outlined_button_test.dart packages/flutter/test/material/text_button_test.dart

@github-actions github-actions Bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels May 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the import path for semantics_tester.dart from a relative parent directory to the current directory across several Material button test files. A review comment suggests adding a blank line between package and relative imports in material_button_test.dart to adhere to the Dart style guide for import ordering.

Comment thread packages/flutter/test/material/material_button_test.dart
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Addressed the import grouping feedback in 5867f29bca3c and re-verified locally with dart analyze plus ./bin/flutter test on the touched Material button test files.

@MarlonJD MarlonJD changed the base branch from main to master May 18, 2026 18:29
@victorsanni victorsanni added the CICD Run CI/CD label May 18, 2026
victorsanni
victorsanni previously approved these changes May 18, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label May 19, 2026
@victorsanni victorsanni added CICD Run CI/CD override code freeze Override an active code freeze. labels May 19, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label May 20, 2026
@justinmc justinmc self-requested a review May 21, 2026 23:46
justinmc
justinmc previously approved these changes May 21, 2026

@justinmc justinmc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍 . Thanks!

@justinmc justinmc added the CICD Run CI/CD label May 21, 2026
@justinmc

Copy link
Copy Markdown
Contributor

This is ready for autosubmit assuming CI passes.

@MarlonJD MarlonJD dismissed stale reviews from justinmc and victorsanni via 2da6838 May 22, 2026 11:39
@github-actions github-actions Bot removed the CICD Run CI/CD label May 22, 2026
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Formatter-only follow-up; no logic changes.

@github-actions github-actions Bot removed the CICD Run CI/CD label May 22, 2026
@MarlonJD MarlonJD requested a review from justinmc May 23, 2026 07:55

@justinmc justinmc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Formatting is back, but let's see if this passes CI. If so then the changes are fine, but I don't understand why they're needed.

@justinmc justinmc added the CICD Run CI/CD label May 26, 2026
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Formatting is back, but let's see if this passes CI. If so then the changes are fine, but I don't understand why they're needed.

Thanks for the re-approval, and sorry for the churn here.

The back-and-forth happened because I first tried to keep the diff minimal after the earlier approvals and restored what looked like unrelated formatter noise. After that, the Linux analyze/format check still considered those touched Material button test files unformatted with the current Dart formatter, so I had to put the formatter output back.

So this was not a behavioral test failure, and there are no logic changes in those hunks. The intended code change is still only the semantics_tester.dart import switch; the extra diffs are just the formatter output required for CI. CI is green now.

@victorsanni victorsanni moved this from In Progress to Done in Test cross-imports Review Queue May 27, 2026
@victorsanni victorsanni added the autosubmit Merge PR when tree becomes green via auto submit App label May 27, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 27, 2026
Merged via the queue into flutter:master with commit f704391 May 27, 2026
93 of 94 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 27, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request May 27, 2026
flutter/flutter@f3a4b98...c8f2f16

2026-05-27 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Flutter GPU] Add explicit draw counts (#186639)" (flutter/flutter#187170)
2026-05-27 engine-flutter-autoroll@skia.org Roll Dart SDK from 7dcea971af6b to f3db7b7d9801 (2 revisions) (flutter/flutter#187144)
2026-05-27 bdero@google.com [Flutter GPU] Add explicit draw counts (flutter/flutter#186639)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from f9db7748563e to fa944af10f91 (1 revision) (flutter/flutter#187139)
2026-05-27 bdero@google.com [Flutter GPU] Flutter GPU ShaderLibrary in-place reload for shader hot reload (flutter/flutter#186793)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from a692cbf38952 to f9db7748563e (8 revisions) (flutter/flutter#187135)
2026-05-27 burak.karahan@mail.ru Use local semantics tester in Material button tests (flutter/flutter#186667)
2026-05-27 rmolivares@renzo-olivares.dev Filter out `a: text input` from `team-framework` PR triage  (flutter/flutter#187129)
2026-05-27 bkonyi@google.com [Engine] Fix silent buffer mismatch bug in FML Win32 CommandLineFromPlatform (flutter/flutter#187120)
2026-05-27 srawlins@google.com examples: Remove unused parameters (flutter/flutter#185819)
2026-05-27 116356835+AbdeMohlbi@users.noreply.github.com Remove another `String.valueOf` (flutter/flutter#186628)
2026-05-27 alex.medinsh@gmail.com Print trace when skipping flavor-specific and platform-specific assets (flutter/flutter#187045)
2026-05-26 adilhanney@disroot.org Fix `InteractiveViewer` memory leak from undisposed `CurvedAnimation`s (flutter/flutter#185826)
2026-05-26 meylis@divine.video Fix AccessibilityBridge startup crash on vendor-modified Android (flutter/flutter#184630)
2026-05-26 keertip@users.noreply.github.com Update data driven fixes docs (flutter/flutter#186217)
2026-05-26 ahmedsameha1@gmail.com Add more 0x0 size tests part10 (flutter/flutter#186201)
2026-05-26 46920873+gabrimatic@users.noreply.github.com Disable spell check for obscured text (flutter/flutter#186329)
2026-05-26 chris@bracken.jp [iOS] Migrate VSyncClient and DisplayLinkManager to Swift (flutter/flutter#187001)
2026-05-26 bkonyi@google.com [flutter_tools, devicelab] Add safety filesystem guard to tests (flutter/flutter#186748)
2026-05-26 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Itd2Jq_ZIABH2rW7B... to k9EizfEGJO4WwQN9-... (flutter/flutter#187115)
2026-05-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 00e625453c43 to 7dcea971af6b (1 revision) (flutter/flutter#187117)
2026-05-26 rmacnak@google.com Remove use of deprecated copy_trees. (flutter/flutter#187091)
2026-05-26 15619084+vashworth@users.noreply.github.com Use resolved implementation plugins with SwiftPM (flutter/flutter#187097)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from 27a819894f7c to a692cbf38952 (3 revisions) (flutter/flutter#187109)
2026-05-26 engine-flutter-autoroll@skia.org Roll Packages from 69cf959 to fc795e5 (4 revisions) (flutter/flutter#187114)
2026-05-26 mvincentong@gmail.com Handle simctl process exceptions during discovery (flutter/flutter#186501)
2026-05-26 mvincentong@gmail.com Clarify precache enabled platforms help (flutter/flutter#186878)
2026-05-26 bkonyi@google.com [tool] Refactor artifacts.dart to use enhanced enums and reduce duplication (flutter/flutter#187063)
2026-05-26 jason-simmons@users.noreply.github.com Build script updates for syncing engine sources and building artifacts on linux-arm64 (flutter/flutter#186917)

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 boetger@google.com,stuartmorgan@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
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…r#11795)

flutter/flutter@f3a4b98...c8f2f16

2026-05-27 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Flutter GPU] Add explicit draw counts (#186639)" (flutter/flutter#187170)
2026-05-27 engine-flutter-autoroll@skia.org Roll Dart SDK from 7dcea971af6b to f3db7b7d9801 (2 revisions) (flutter/flutter#187144)
2026-05-27 bdero@google.com [Flutter GPU] Add explicit draw counts (flutter/flutter#186639)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from f9db7748563e to fa944af10f91 (1 revision) (flutter/flutter#187139)
2026-05-27 bdero@google.com [Flutter GPU] Flutter GPU ShaderLibrary in-place reload for shader hot reload (flutter/flutter#186793)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from a692cbf38952 to f9db7748563e (8 revisions) (flutter/flutter#187135)
2026-05-27 burak.karahan@mail.ru Use local semantics tester in Material button tests (flutter/flutter#186667)
2026-05-27 rmolivares@renzo-olivares.dev Filter out `a: text input` from `team-framework` PR triage  (flutter/flutter#187129)
2026-05-27 bkonyi@google.com [Engine] Fix silent buffer mismatch bug in FML Win32 CommandLineFromPlatform (flutter/flutter#187120)
2026-05-27 srawlins@google.com examples: Remove unused parameters (flutter/flutter#185819)
2026-05-27 116356835+AbdeMohlbi@users.noreply.github.com Remove another `String.valueOf` (flutter/flutter#186628)
2026-05-27 alex.medinsh@gmail.com Print trace when skipping flavor-specific and platform-specific assets (flutter/flutter#187045)
2026-05-26 adilhanney@disroot.org Fix `InteractiveViewer` memory leak from undisposed `CurvedAnimation`s (flutter/flutter#185826)
2026-05-26 meylis@divine.video Fix AccessibilityBridge startup crash on vendor-modified Android (flutter/flutter#184630)
2026-05-26 keertip@users.noreply.github.com Update data driven fixes docs (flutter/flutter#186217)
2026-05-26 ahmedsameha1@gmail.com Add more 0x0 size tests part10 (flutter/flutter#186201)
2026-05-26 46920873+gabrimatic@users.noreply.github.com Disable spell check for obscured text (flutter/flutter#186329)
2026-05-26 chris@bracken.jp [iOS] Migrate VSyncClient and DisplayLinkManager to Swift (flutter/flutter#187001)
2026-05-26 bkonyi@google.com [flutter_tools, devicelab] Add safety filesystem guard to tests (flutter/flutter#186748)
2026-05-26 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Itd2Jq_ZIABH2rW7B... to k9EizfEGJO4WwQN9-... (flutter/flutter#187115)
2026-05-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 00e625453c43 to 7dcea971af6b (1 revision) (flutter/flutter#187117)
2026-05-26 rmacnak@google.com Remove use of deprecated copy_trees. (flutter/flutter#187091)
2026-05-26 15619084+vashworth@users.noreply.github.com Use resolved implementation plugins with SwiftPM (flutter/flutter#187097)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from 27a819894f7c to a692cbf38952 (3 revisions) (flutter/flutter#187109)
2026-05-26 engine-flutter-autoroll@skia.org Roll Packages from 69cf959 to fc795e5 (4 revisions) (flutter/flutter#187114)
2026-05-26 mvincentong@gmail.com Handle simctl process exceptions during discovery (flutter/flutter#186501)
2026-05-26 mvincentong@gmail.com Clarify precache enabled platforms help (flutter/flutter#186878)
2026-05-26 bkonyi@google.com [tool] Refactor artifacts.dart to use enhanced enums and reduce duplication (flutter/flutter#187063)
2026-05-26 jason-simmons@users.noreply.github.com Build script updates for syncing engine sources and building artifacts on linux-arm64 (flutter/flutter#186917)

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 boetger@google.com,stuartmorgan@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
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Jun 23, 2026
…d cupertino_ui (#11964)

Most Material and Cupertino code was copied over from flutter/flutter in #11888, but a few PRs landed after that copy. This PR copies one of those PRs to this repo.

This PR is the first PR to be ported over. Reviewers please let me know if the process of porting PRs like this looks alright to you!

Ports over flutter/flutter#186667.

Part of flutter/flutter#188441 and flutter/flutter#188395.
pull Bot pushed a commit to mikeyhodl/flutter that referenced this pull request Jun 24, 2026
…r#188505)

flutter/packages@7d84a69...af136cc

2026-06-24 94012898+gfongT5@users.noreply.github.com
[path_provider_linux] use soname for libgio (flutter/packages#11748)
2026-06-23 qiqetes@gmail.com [go_router] fix onExit ignored for GoRoute
nested inside ShellRoute (flutter/packages#11853)
2026-06-23 jmccandless@google.com [Decoupling] Port PR (flutter#186667) from
flutter/flutter to material_ui and cupertino_ui (flutter/packages#11964)
2026-06-23 engine-flutter-autoroll@skia.org Roll Flutter from
e228771 to 87224e0 (19 revisions) (flutter/packages#11961)
2026-06-23 1063596+reidbaker@users.noreply.github.com docs: Add agentic
workflow playbook for camera_android_camerax (flutter/packages#11959)

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-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
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
via-guy pushed a commit to via-guy/flutter that referenced this pull request Jun 26, 2026
Part of flutter#182636.

Switches the Material button test files that already have a local
`semantics_tester.dart` copy from importing
`../widgets/semantics_tester.dart` to importing the local Material test
utility. This removes another small set of cross-library test utility
imports ahead of the Material/Cupertino package split.

Validation:
- dart analyze packages/flutter/test/material/elevated_button_test.dart
packages/flutter/test/material/filled_button_test.dart
packages/flutter/test/material/material_button_test.dart
packages/flutter/test/material/outlined_button_test.dart
packages/flutter/test/material/text_button_test.dart
- flutter test packages/flutter/test/material/elevated_button_test.dart
packages/flutter/test/material/filled_button_test.dart
packages/flutter/test/material/material_button_test.dart
packages/flutter/test/material/outlined_button_test.dart
packages/flutter/test/material/text_button_test.dart

---------

Co-authored-by: Victor Sanni <victorsanniay@gmail.com>
via-guy pushed a commit to via-guy/flutter that referenced this pull request Jun 26, 2026
…r#188505)

flutter/packages@7d84a69...af136cc

2026-06-24 94012898+gfongT5@users.noreply.github.com
[path_provider_linux] use soname for libgio (flutter/packages#11748)
2026-06-23 qiqetes@gmail.com [go_router] fix onExit ignored for GoRoute
nested inside ShellRoute (flutter/packages#11853)
2026-06-23 jmccandless@google.com [Decoupling] Port PR (flutter#186667) from
flutter/flutter to material_ui and cupertino_ui (flutter/packages#11964)
2026-06-23 engine-flutter-autoroll@skia.org Roll Flutter from
e228771 to 87224e0 (19 revisions) (flutter/packages#11961)
2026-06-23 1063596+reidbaker@users.noreply.github.com docs: Add agentic
workflow playbook for camera_android_camerax (flutter/packages#11959)

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-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
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

a: text input Entering text in a text field or keyboard related problems CICD Run CI/CD f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. override code freeze Override an active code freeze.

Projects

Development

Successfully merging this pull request may close these issues.

4 participants