Added integration test for wide gamut support. (#119657)
* Added integration test for wide gamut support. * cleaned up * deleted files that can be generated * switched back to standard flutter in the shell script * added devicelab task * removed analysis options * analyzer * Fixed task * made local_run.sh not executable * analyzer * removed the logo asset * added task to ci * updated pubspec * analysis errors fixed * updated pubspec
This commit is contained in:
12
dev/devicelab/bin/tasks/wide_gamut_ios.dart
Normal file
12
dev/devicelab/bin/tasks/wide_gamut_ios.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_devicelab/framework/devices.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createWideGamutTest());
|
||||
}
|
||||
@@ -157,6 +157,14 @@ TaskFunction createWindowsStartupDriverTest({String? deviceIdOverride}) {
|
||||
).call;
|
||||
}
|
||||
|
||||
TaskFunction createWideGamutTest() {
|
||||
return IntegrationTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/wide_gamut_test',
|
||||
'integration_test/app_test.dart',
|
||||
createPlatforms: <String>['ios'],
|
||||
).call;
|
||||
}
|
||||
|
||||
class DriverTest {
|
||||
DriverTest(
|
||||
this.testDirectory,
|
||||
@@ -204,12 +212,14 @@ class IntegrationTest {
|
||||
this.testDirectory,
|
||||
this.testTarget, {
|
||||
this.extraOptions = const <String>[],
|
||||
this.createPlatforms = const <String>[],
|
||||
}
|
||||
);
|
||||
|
||||
final String testDirectory;
|
||||
final String testTarget;
|
||||
final List<String> extraOptions;
|
||||
final List<String> createPlatforms;
|
||||
|
||||
Future<TaskResult> call() {
|
||||
return inDirectory<TaskResult>(testDirectory, () async {
|
||||
@@ -218,6 +228,15 @@ class IntegrationTest {
|
||||
final String deviceId = device.deviceId;
|
||||
await flutter('packages', options: <String>['get']);
|
||||
|
||||
if (createPlatforms.isNotEmpty) {
|
||||
await flutter('create', options: <String>[
|
||||
'--platforms',
|
||||
createPlatforms.join(','),
|
||||
'--no-overwrite',
|
||||
'.'
|
||||
]);
|
||||
}
|
||||
|
||||
final List<String> options = <String>[
|
||||
'-v',
|
||||
'-d',
|
||||
|
||||
Reference in New Issue
Block a user