[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
@@ -11,4 +11,4 @@ import 'package:test_api/test_api.dart' as test_package show TypeMatcher; // ign
|
||||
export 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf; // ignore: deprecated_member_use
|
||||
|
||||
/// A matcher that compares the type of the actual value to the type argument T.
|
||||
test_package.TypeMatcher<T> isInstanceOf<T>() => isA<T>();
|
||||
Matcher isInstanceOf<T>() => test_package.TypeMatcher<T>();
|
||||
|
||||
@@ -161,7 +161,7 @@ void main() {
|
||||
|
||||
// Should fail as no env variable has been passed.
|
||||
expect(failingFunction,
|
||||
throwsA(isA<FuchsiaRemoteConnectionError>()));
|
||||
throwsA(isInstanceOf<FuchsiaRemoteConnectionError>()));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ void main() {
|
||||
}
|
||||
|
||||
// Both views should be invalid as they were missing required fields.
|
||||
expect(failingFunction, throwsA(isA<RpcFormatError>()));
|
||||
expect(failingFunction, throwsA(isInstanceOf<RpcFormatError>()));
|
||||
});
|
||||
|
||||
test('get isolates by pattern', () async {
|
||||
@@ -311,7 +311,7 @@ void main() {
|
||||
}
|
||||
|
||||
// Both views should be invalid as they were missing required fields.
|
||||
expect(failingFunction, throwsA(isA<RpcFormatError>()));
|
||||
expect(failingFunction, throwsA(isInstanceOf<RpcFormatError>()));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -346,7 +346,7 @@ void main() {
|
||||
await vm.invokeRpc('somesillyfunction', timeout: timeoutTime);
|
||||
}
|
||||
|
||||
expect(failingFunction, throwsA(isA<TimeoutException>()));
|
||||
expect(failingFunction, throwsA(isInstanceOf<TimeoutException>()));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ void main() {
|
||||
await runner.run('oihaw');
|
||||
}
|
||||
|
||||
expect(failingFunction, throwsA(isA<SshCommandError>()));
|
||||
expect(failingFunction, throwsA(isInstanceOf<SshCommandError>()));
|
||||
});
|
||||
|
||||
test('verify correct args with config', () async {
|
||||
|
||||
Reference in New Issue
Block a user