Repository navigation
[web] Unskip 12 passing framework tests in text_test and opacity_test - #193298
Conversation
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).
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
});| 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 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/62945 | |
| }); |
| ); | ||
| semantics.dispose(); | ||
| }, skip: isBrowser); // https://github.com/flutter/flutter/issues/62945 | ||
| }); // https://github.com/flutter/flutter/issues/62945 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/62945 | |
| }); |
| 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 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/62945 | |
| }); |
|
|
||
| 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 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/87878 | |
| }); |
| 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 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/44020 | |
| }); |
| ); | ||
| semantics.dispose(); | ||
| }, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877 | ||
| }); // https://github.com/flutter/flutter/issues/87877 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/87877 | |
| }); |
| ); | ||
| semantics.dispose(); | ||
| }, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877 | ||
| }); // https://github.com/flutter/flutter/issues/87877 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/87877 | |
| }); |
| ); | ||
| semantics.dispose(); | ||
| }, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877 | ||
| }); // https://github.com/flutter/flutter/issues/87877 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/87877 | |
| }); |
| ); | ||
| semantics.dispose(); | ||
| }, skip: isBrowser); // https://github.com/flutter/flutter/issues/87877 | ||
| }); // https://github.com/flutter/flutter/issues/87877 |
There was a problem hiding this comment.
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.
| }); // https://github.com/flutter/flutter/issues/87877 | |
| }); |
Unskips 12 tests across 2 framework test files (
packages/flutter/test/widgets/text_test.dartandpackages/flutter/test/widgets/opacity_test.dart) that were previously skipped on web (skip: isBrowser) and now pass on Chrome:packages/flutter/test/widgets/text_test.dart(11 skips removed):TextSpanrecognizer link semantics and inline widget semantics) skipped for Bidi and semantics on Web #62945.Overflow is clipping correctlytest skipped for [web] text_test 'Overlow is clipping correctly...' test failing on web. #87878.textWidthBasistests (longestLine,textAlignwith parent alignment, andlongestLinewith loose constraints) skipped for Implement textWidthBasis on the Web #44020.WidgetSpans with no semantic information are elided from semanticstests skipped for [web] text_test semantics tests fails on web. #87877.packages/flutter/test/widgets/opacity_test.dart(1 skip removed):empty opacity does not crash, skipped for Craft better error message for OffsetLayer.toImage in the HTML renderer #49857 (HTML rendererOffsetLayer.toImage, closed).The only non-trivial diff is
dart formatreflowing thetextWidthBasis.longestLine confines the width of the paragraphtest after its trailingskip:argument was removed; the test body is unchanged.Related issues:
Pre-launch Checklist
///).