Skip to content

[web] Unskip 12 passing framework tests in text_test and opacity_test - #193298

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
harryterkelsen:unskip-web-tests-batch-3
Sep 24, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
harryterkelsen:unskip-web-tests-batch-3

Conversation

@harryterkelsen

Copy link
Copy Markdown
Contributor

Unskips 12 tests across 2 framework test files (packages/flutter/test/widgets/text_test.dart and packages/flutter/test/widgets/opacity_test.dart) that were previously skipped on web (skip: isBrowser) and now pass on Chrome:

The only non-trivial diff is dart format reflowing the textWidthBasis.longestLine confines the width of the paragraph test after its trailing skip: argument was removed; the test body is unchanged.

Related issues:

Pre-launch Checklist

Removes `skip: isBrowser` from 12 tests that now pass on Chrome:

- `packages/flutter/test/widgets/text_test.dart` (11 tests): Bidi/link
  semantics (flutter#62945), ellipsis clipping (flutter#87878), `textWidthBasis`
  (flutter#44020), and `WidgetSpan` semantics elision (flutter#87877).
- `packages/flutter/test/widgets/opacity_test.dart` (1 test): `empty
  opacity does not crash` (flutter#49857, `OffsetLayer.toImage` is now supported
  on web).
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 24, 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 skip: isBrowser parameter from several tests in opacity_test.dart and text_test.dart, enabling them to run in browser environments. The reviewer feedback recommends removing the obsolete comments that reference the tracking issues for these skipped tests to maintain code cleanliness.

final ui.Image image = await offsetLayer.toImage(const Rect.fromLTRB(0.0, 0.0, 1.0, 1.0));
image.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/49857
}); // https://github.com/flutter/flutter/issues/49857

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

  });
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreId: true));
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/62945
}); // https://github.com/flutter/flutter/issues/62945

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/62945
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

);
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/62945
}); // https://github.com/flutter/flutter/issues/62945

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/62945
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

expect(semantics, hasSemantics(expectedSemantics, ignoreTransform: true, ignoreId: true));
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/62945
}); // https://github.com/flutter/flutter/issues/62945

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/62945
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)


expect(find.byType(Text), paints..clipRect(rect: const Rect.fromLTWH(0, 0, 50, 50)));
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/87878
}); // https://github.com/flutter/flutter/issues/87878

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/87878
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

expect(tester.getSize(find.text('LEFT ALIGNED, LONGEST LINE')).width, lessThan(width));
expect(tester.getSize(find.text('RIGHT ALIGNED, LONGEST LINE')).width, equals(width));
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/44020
}); // https://github.com/flutter/flutter/issues/44020

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/44020
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

);
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877
}); // https://github.com/flutter/flutter/issues/87877

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/87877
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

);
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877
}); // https://github.com/flutter/flutter/issues/87877

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/87877
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

);
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877
}); // https://github.com/flutter/flutter/issues/87877

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/87877
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

);
semantics.dispose();
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877
}); // https://github.com/flutter/flutter/issues/87877

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.

medium

Since this test is no longer skipped, the comment linking to the issue that tracked the skip is obsolete and should be removed to keep the codebase clean and maintainable.

Suggested change
}); // https://github.com/flutter/flutter/issues/87877
});
References
  1. Optimize for readability: Code is read more often than it is written. (link)
  2. Documentation should be useful: Explain the why and the how. (link)

@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. labels Sep 24, 2026
@harryterkelsen harryterkelsen added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Sep 24, 2026
Merged via the queue into flutter:master with commit b57256e Sep 24, 2026
23 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2026
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 framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants