[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
@@ -22,7 +22,7 @@ export 'package:test_core/test_core.dart' hide TypeMatcher, isInstanceOf; // Def
|
||||
|
||||
/// 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>();
|
||||
|
||||
void tryToDelete(Directory directory) {
|
||||
// This should not be necessary, but it turns out that
|
||||
@@ -91,9 +91,6 @@ void updateFileModificationTime(
|
||||
globals.fs.file(path).setLastModifiedSync(modificationTime);
|
||||
}
|
||||
|
||||
/// Matcher for functions that throw [AssertionError].
|
||||
final Matcher throwsAssertionError = throwsA(isA<AssertionError>());
|
||||
|
||||
/// Matcher for functions that throw [ToolExit].
|
||||
Matcher throwsToolExit({ int exitCode, Pattern message }) {
|
||||
Matcher matcher = isToolExit;
|
||||
@@ -107,7 +104,7 @@ Matcher throwsToolExit({ int exitCode, Pattern message }) {
|
||||
}
|
||||
|
||||
/// Matcher for [ToolExit]s.
|
||||
final test_package.TypeMatcher<ToolExit> isToolExit = isA<ToolExit>();
|
||||
final Matcher isToolExit = isInstanceOf<ToolExit>();
|
||||
|
||||
/// Matcher for functions that throw [ProcessExit].
|
||||
Matcher throwsProcessExit([ dynamic exitCode ]) {
|
||||
@@ -117,7 +114,7 @@ Matcher throwsProcessExit([ dynamic exitCode ]) {
|
||||
}
|
||||
|
||||
/// Matcher for [ProcessExit]s.
|
||||
final test_package.TypeMatcher<ProcessExit> isProcessExit = isA<ProcessExit>();
|
||||
final Matcher isProcessExit = isInstanceOf<ProcessExit>();
|
||||
|
||||
/// Creates a flutter project in the [temp] directory using the
|
||||
/// [arguments] list if specified, or `--no-pub` if not.
|
||||
|
||||
@@ -12,7 +12,6 @@ import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/io.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/process.dart';
|
||||
import 'package:flutter_tools/src/base/signals.dart';
|
||||
import 'package:flutter_tools/src/base/terminal.dart';
|
||||
import 'package:flutter_tools/src/base/time.dart';
|
||||
@@ -64,9 +63,6 @@ void testUsingContext(
|
||||
'that you are dealing with in your test.'
|
||||
);
|
||||
}
|
||||
if (overrides.containsKey(ProcessUtils)) {
|
||||
throw StateError('Do not inject ProcessUtils for testing, use ProcessManager instead.');
|
||||
}
|
||||
|
||||
// Ensure we don't rely on the default [Config] constructor which will
|
||||
// leak a sticky $HOME/.flutter_settings behind!
|
||||
|
||||
@@ -12,7 +12,6 @@ import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/io.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/process.dart';
|
||||
|
||||
import 'package:flutter_tools/src/base/signals.dart';
|
||||
import 'package:flutter_tools/src/base/terminal.dart';
|
||||
@@ -114,9 +113,6 @@ class Testbed {
|
||||
// Add the test-specific overrides
|
||||
...?overrides,
|
||||
};
|
||||
if (testOverrides.containsKey(ProcessUtils)) {
|
||||
throw StateError('Do not inject ProcessUtils for testing, use ProcessManager instead.');
|
||||
}
|
||||
// Cache the original flutter root to restore after the test case.
|
||||
final String originalFlutterRoot = Cache.flutterRoot;
|
||||
// Track pending timers to verify that they were correctly cleaned up.
|
||||
|
||||
Reference in New Issue
Block a user