Skip to content

Conversation

@pdblasi-google
Copy link
Contributor

@pdblasi-google pdblasi-google commented Mar 14, 2023

Updates flutter/test/material to no longer use TestWindow

  • Adds FakeViewPadding.zero and updates view_test.dart and window_test.dart to use them
  • Removes no-shuffle tag from app_test.dart as the underlying issue seems to be resolved
  • Removes no-shuffle tag from text_field_test.dart as the underlying issue seems to be resolved

The issue with the previous PR was the removal of import 'dart:ui' as ui; from page_test.dart. This was needed to avoid analysis issues on the branch, but when merged with changes in master (that included additional references to dart:ui) it cause a build failure.

Resolves #122240 and #122637.

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].
  • All existing and new tests are passing.

* Adds `FakeViewPadding.zero` and updates `view_test.dart` and `window_test.dart` to use them
* Removes `no-shuffle` tag from `app_test.dart` as the underlying issue seems to be resolved
* Removes `no-shuffle` tag from `text_field_test.dart` as the underlying issue seems to be resolved
@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems f: material design flutter/packages/flutter/material repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Mar 14, 2023
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer goderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 14, 2023
@auto-submit auto-submit bot merged commit 0ba6448 into flutter:master Mar 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2023
@pdblasi-google pdblasi-google deleted the issues/122240 branch March 15, 2023 18:08
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App f: material design flutter/packages/flutter/material repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update flutter/test/material to no longer use TestWindow

2 participants