Widen getText support for RichText with multiple text spans in driver (#75603)
This commit is contained in:
@@ -599,6 +599,18 @@ void main() {
|
||||
controller: TextEditingController(text: 'Hello5'),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
height: 25.0,
|
||||
child: RichText(
|
||||
key: const ValueKey<String>('text6'),
|
||||
text: const TextSpan(children: <TextSpan>[
|
||||
TextSpan(text: 'Hello'),
|
||||
TextSpan(text: ', '),
|
||||
TextSpan(text: 'World'),
|
||||
TextSpan(text: '!'),
|
||||
]),
|
||||
),
|
||||
),
|
||||
],
|
||||
))
|
||||
)
|
||||
@@ -609,6 +621,7 @@ void main() {
|
||||
expect(await getTextInternal(ByValueKey('text3')), 'Hello3');
|
||||
expect(await getTextInternal(ByValueKey('text4')), 'Hello4');
|
||||
expect(await getTextInternal(ByValueKey('text5')), 'Hello5');
|
||||
expect(await getTextInternal(ByValueKey('text6')), 'Hello, World!');
|
||||
|
||||
// Check if error thrown for other types
|
||||
final Map<String, String> arguments = GetText(ByValueKey('column'), timeout: const Duration(seconds: 1)).serialize();
|
||||
|
||||
Reference in New Issue
Block a user