Revert "Re-land "Migrate android_semantics_testing to null safety (#84136)" (#84156)" (#84166)

This reverts commit 0100285e6f.
This commit is contained in:
Darren Austin
2021-06-07 17:49:30 -07:00
committed by GitHub
parent 5652eb8e87
commit 80709c1d8a
10 changed files with 84 additions and 91 deletions

View File

@@ -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', () {
late FlutterDriver driver;
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', () {
@@ -658,7 +658,6 @@ void main() {
group('Headings', () {
setUpAll(() async {
await driver.tap(find.text(headingsRoute));
await driver.waitFor(find.byValueKey(appBarTitleKeyValue));
});
test('AppBar title has correct Android heading semantics', () async {