mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
parent
11f236ec25
commit
22e8d85d16
@ -291,7 +291,7 @@ abstract class Finder {
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => 'widget with $description';
|
||||
String toString() => '[Finder for $description]';
|
||||
}
|
||||
|
||||
/// Indicates that an attempt to find a widget within the current element tree
|
||||
|
@ -26,9 +26,9 @@ void main() {
|
||||
|
||||
expect(failure, isNotNull);
|
||||
String message = failure.message;
|
||||
expect(message, contains('Expected: widget with text "foo" exists in the element tree'));
|
||||
expect(message, contains('Expected: [Finder for text "foo"] exists in the element tree'));
|
||||
expect(message, contains("Actual: <Instance of 'WidgetTester'>"));
|
||||
expect(message, contains('Which: Does not contain widget with text "foo"'));
|
||||
expect(message, contains('Which: Does not contain [Finder for text "foo"]'));
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -53,9 +53,9 @@ void main() {
|
||||
|
||||
expect(failure, isNotNull);
|
||||
String message = failure.message;
|
||||
expect(message, contains('Expected: widget with text "foo" does not exist in the element tree'));
|
||||
expect(message, contains('Expected: [Finder for text "foo"] does not exist in the element tree'));
|
||||
expect(message, contains("Actual: <Instance of 'WidgetTester'>"));
|
||||
expect(message, contains('Which: Contains widget with text "foo"'));
|
||||
expect(message, contains('Which: Contains [Finder for text "foo"]'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user