This commit is contained in:
committed by
GitHub
parent
b3bde1d9da
commit
0100285e6f
@@ -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', () {
|
||||
@@ -658,6 +658,7 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user