Skip to content

[cross_imports] Remove Material dependency from painting color tests - #192716

Open
MarlonJD wants to merge 2 commits into
flutter:masterfrom
MarlonJD:remove-material-color-test-from-painting
Open

MarlonJD wants to merge 2 commits into
flutter:masterfrom
MarlonJD:remove-material-color-test-from-painting

Conversation

@MarlonJD

Copy link
Copy Markdown
Contributor

This PR contains the framework-side remainder of flutter/flutter#186777.

The MaterialColor swatch comparison test is ported to material_ui. This PR removes the test from painting/colors_test.dart, narrows its import from material.dart to painting.dart, and removes the obsolete cross-import allowlist entry.

Part of flutter/flutter#188444.

@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 13, 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 removes the cross-import of the material package from colors_test.dart by replacing the import of package:flutter/material.dart with package:flutter/painting.dart and removing the MaterialColor swatch comparison test. Consequently, colors_test.dart is removed from the list of known painting cross-imports in check_tests_cross_imports.dart. There are no review comments, and I have no feedback to provide.

@Renzo-Olivares Renzo-Olivares 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

@navaronbracke navaronbracke added the CICD Run CI/CD label Oct 5, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Oct 22, 2026
This PR ports the Material-specific test from [flutter/flutter#186777](flutter/flutter#186777) to `material_ui`.

The `MaterialColor swatch comparison` test verifies equality for separate swatch maps containing the same standard `Color` values.

This is a test-only port, so no package version or changelog entry is needed.

Part of [flutter/flutter#188444](flutter/flutter#188444).

The PR that removes the test in the framework is flutter/flutter#192716
@flutter-dashboard

Copy link
Copy Markdown

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard Bot removed the CICD Run CI/CD label Oct 25, 2026
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Updated with latest master to address stale CI configuration and refresh Gold results. Could a maintainer re-add CICD to rerun the tests?

@navaronbracke navaronbracke added the CICD Run CI/CD label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants