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:
gaaclarke
2023-02-13 14:33:19 -08:00
committed by GitHub
parent 778b3fa322
commit ddebe833b0
11 changed files with 393 additions and 0 deletions

View 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());
}

View File

@@ -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',