Fix typos (#82589)
This commit is contained in:
@@ -120,7 +120,7 @@ class AndroidValidator extends DoctorValidator {
|
||||
|
||||
/// `java -version` response is not only a number, but also includes other
|
||||
/// information eg. `openjdk version "1.7.0_212"`.
|
||||
/// This method extracts only the semantic version from from that response.
|
||||
/// This method extracts only the semantic version from that response.
|
||||
static String? _extractJavaVersion(String? text) {
|
||||
if (text == null || text.isEmpty) {
|
||||
return null;
|
||||
|
||||
@@ -254,7 +254,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
|
||||
_testFiles = argResults.rest.map<String>(globals.fs.path.absolute).toList();
|
||||
if (_testFiles.isEmpty) {
|
||||
// We don't scan the entire package, only the test/ subdirectory, so that
|
||||
// files with names like like "hit_test.dart" don't get run.
|
||||
// files with names like "hit_test.dart" don't get run.
|
||||
final Directory testDir = globals.fs.directory('test');
|
||||
if (!testDir.existsSync()) {
|
||||
throwToolExit('Test directory "${testDir.path}" not found.');
|
||||
|
||||
@@ -23,7 +23,7 @@ import '../src/common.dart';
|
||||
import '../src/context.dart';
|
||||
|
||||
void main() {
|
||||
testUsingContext('Exits with code 2 when when HttpException is thrown '
|
||||
testUsingContext('Exits with code 2 when HttpException is thrown '
|
||||
'during VM service connection', () async {
|
||||
final FakeResidentCompiler residentCompiler = FakeResidentCompiler();
|
||||
final FakeDevice device = FakeDevice()
|
||||
|
||||
@@ -186,7 +186,7 @@ void main() {
|
||||
device = createDevice(enableObservatory: true);
|
||||
});
|
||||
|
||||
testUsingContext('skips setting observatory port and uses the input port for for DDS instead', () async {
|
||||
testUsingContext('skips setting observatory port and uses the input port for DDS instead', () async {
|
||||
await device.start('example.dill');
|
||||
await device.observatoryUri;
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ void main() {
|
||||
fileSystem = MemoryFileSystem.test();
|
||||
});
|
||||
|
||||
testUsingContext('Exits with code 2 when when HttpException is thrown '
|
||||
testUsingContext('Exits with code 2 when HttpException is thrown '
|
||||
'during VM service connection', () async {
|
||||
fileSystem.file('.packages')
|
||||
..createSync(recursive: true)
|
||||
|
||||
@@ -985,7 +985,7 @@ void main() {
|
||||
expect(response.statusCode, 404);
|
||||
}));
|
||||
|
||||
test('WebAssetServer strips leading base href off off asset requests', () => testbed.run(() async {
|
||||
test('WebAssetServer strips leading base href off of asset requests', () => testbed.run(() async {
|
||||
const String htmlContent = '<html><head><base href="/foo/"></head><body id="test"></body></html>';
|
||||
globals.fs.currentDirectory
|
||||
.childDirectory('web')
|
||||
|
||||
Reference in New Issue
Block a user