-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/engine
#36699Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsplatform-webWeb applications specificallyWeb applications specifically
Description
flutter/engine@5956aa6 missed the html version of the text.dart
This test should pass, if the html version is patched
test('getWordBoundary test', () {
const String text = 'how are you';
final RenderParagraph paragraph = RenderParagraph(
const TextSpan(text: text),
textDirection: TextDirection.ltr,
);
layout(paragraph);
TextRange range = paragraph.getWordBoundary(const TextPosition(offset: 2));
expect(range.textInside(text), equals('how'));
range = paragraph.getWordBoundary(const TextPosition(offset: 3, affinity: TextAffinity.upstream));
expect(range.textInside(text), equals('how'));
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsplatform-webWeb applications specificallyWeb applications specifically