Migrate android_semantics_testing to null safety (#84136)
This commit is contained in:
committed by
GitHub
parent
3858cc655c
commit
0d1a8a7798
@@ -11,7 +11,7 @@ import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart' hide isInstanceOf;
|
||||
|
||||
String adbPath() {
|
||||
final String androidHome = io.Platform.environment['ANDROID_HOME'] ?? io.Platform.environment['ANDROID_SDK_ROOT'];
|
||||
final String? androidHome = io.Platform.environment['ANDROID_HOME'] ?? io.Platform.environment['ANDROID_SDK_ROOT'];
|
||||
if (androidHome == null) {
|
||||
return 'adb';
|
||||
} else {
|
||||
@@ -21,7 +21,7 @@ String adbPath() {
|
||||
|
||||
void main() {
|
||||
group('AccessibilityBridge', () {
|
||||
FlutterDriver driver;
|
||||
late FlutterDriver driver;
|
||||
Future<AndroidSemanticsNode> getSemantics(SerializableFinder finder) async {
|
||||
final int id = await driver.getSemanticsId(finder);
|
||||
final String data = await driver.requestData('getSemanticsNode#$id');
|
||||
@@ -53,7 +53,7 @@ void main() {
|
||||
'null',
|
||||
]);
|
||||
await run.exitCode;
|
||||
driver?.close();
|
||||
driver.close();
|
||||
});
|
||||
|
||||
group('TextField', () {
|
||||
|
||||
Reference in New Issue
Block a user