Revert "Reland "Migrate android_semantics_testing to null safety" (#90466)" (#90483)

This reverts commit 1002a76857.
This commit is contained in:
Darren Austin
2021-09-21 15:55:24 -07:00
committed by GitHub
parent 1002a76857
commit 9aa829460d
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 {