Add a virtual-display (VD) platform view test, and refactor tests a bit. (#161349)
Towards https://github.com/flutter/flutter/issues/161261. Still need to add a HC (Hybrid Composition) variant, but figured I'd do this incrementally to make it easier to review.
This commit is contained in:
@@ -71,6 +71,12 @@ final class AndroidNativeDriver implements NativeDriver {
|
||||
await _driver.sendCommand(NativeCommand.tap(finder));
|
||||
}
|
||||
|
||||
@override
|
||||
Future<int> get sdkVersion async {
|
||||
final Map<String, Object?> result = await _driver.sendCommand(NativeCommand.getSdkVersion);
|
||||
return result['version']! as int;
|
||||
}
|
||||
|
||||
/// Waits for 2 seconds before completing.
|
||||
///
|
||||
/// There is no perfect way, outside of polling, to know when the device is
|
||||
|
||||
Reference in New Issue
Block a user