[a11y] Make sure RenderFractionalTranslation updates its semantics after the translation field is set (#48985)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
fcf341e4f3
commit
b67d5ec6e9
@@ -162,7 +162,7 @@ const Matcher hasAGoodToStringDeep = _HasGoodToStringDeep();
|
||||
|
||||
/// A matcher for functions that throw [FlutterError].
|
||||
///
|
||||
/// This is equivalent to `throwsA(isA<FlutterError>())`.
|
||||
/// This is equivalent to `throwsA(isInstanceOf<FlutterError>())`.
|
||||
///
|
||||
/// If you are trying to test whether a call to [WidgetTester.pumpWidget]
|
||||
/// results in a [FlutterError], see [TestWidgetsFlutterBinding.takeException].
|
||||
@@ -176,7 +176,7 @@ final Matcher throwsFlutterError = throwsA(isFlutterError);
|
||||
|
||||
/// A matcher for functions that throw [AssertionError].
|
||||
///
|
||||
/// This is equivalent to `throwsA(isA<AssertionError>())`.
|
||||
/// This is equivalent to `throwsA(isInstanceOf<AssertionError>())`.
|
||||
///
|
||||
/// If you are trying to test whether a call to [WidgetTester.pumpWidget]
|
||||
/// results in an [AssertionError], see
|
||||
@@ -197,7 +197,7 @@ final Matcher throwsAssertionError = throwsA(isAssertionError);
|
||||
///
|
||||
/// * [throwsFlutterError], to test if a function throws a [FlutterError].
|
||||
/// * [isAssertionError], to test if any object is any kind of [AssertionError].
|
||||
final test_package.TypeMatcher<FlutterError> isFlutterError = isA<FlutterError>();
|
||||
final Matcher isFlutterError = isInstanceOf<FlutterError>();
|
||||
|
||||
/// A matcher for [AssertionError].
|
||||
///
|
||||
@@ -207,11 +207,11 @@ final test_package.TypeMatcher<FlutterError> isFlutterError = isA<FlutterError>(
|
||||
///
|
||||
/// * [throwsAssertionError], to test if a function throws any [AssertionError].
|
||||
/// * [isFlutterError], to test if any object is a [FlutterError].
|
||||
final test_package.TypeMatcher<AssertionError> isAssertionError = isA<AssertionError>();
|
||||
final Matcher isAssertionError = isInstanceOf<AssertionError>();
|
||||
|
||||
/// A matcher that compares the type of the actual value to the type argument T.
|
||||
// TODO(ianh): Remove this once https://github.com/dart-lang/matcher/issues/98 is fixed
|
||||
test_package.TypeMatcher<T> isInstanceOf<T>() => isA<T>();
|
||||
Matcher isInstanceOf<T>() => test_package.TypeMatcher<T>();
|
||||
|
||||
/// Asserts that two [double]s are equal, within some tolerated error.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user