This reverts commit e03f439145.
This commit is contained in:
@@ -10,5 +10,5 @@ import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.fuchsia;
|
||||
await task(createFlutterDriverScreenshotTest(useFlutterGold: true));
|
||||
await task(createFlutterDriverScreenshotTest());
|
||||
}
|
||||
|
||||
@@ -107,22 +107,15 @@ TaskFunction createAndroidSplashScreenKitchenSinkTest() {
|
||||
);
|
||||
}
|
||||
|
||||
/// Executes a driver test that takes a screenshot and compares it against a golden image.
|
||||
/// If [useFlutterGold] is true, the golden image is served by Flutter Gold
|
||||
/// (https://flutter-gold.skia.org/), otherwise the golden image is read from the disk.
|
||||
TaskFunction createFlutterDriverScreenshotTest({
|
||||
bool useFlutterGold = false,
|
||||
}) {
|
||||
TaskFunction createFlutterDriverScreenshotTest() {
|
||||
return DriverTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/flutter_driver_screenshot_test',
|
||||
'lib/main.dart',
|
||||
extraOptions: useFlutterGold ? const <String>[
|
||||
'--driver', 'test_driver/flutter_gold_main_test.dart'
|
||||
] : const <String>[]
|
||||
);
|
||||
}
|
||||
|
||||
class DriverTest {
|
||||
|
||||
DriverTest(
|
||||
this.testDirectory,
|
||||
this.testTarget, {
|
||||
|
||||
Reference in New Issue
Block a user