Move flutter_gallery to the testing folder (#52532)

Move Flutter Gallery to dev/integration_tests/ as it is an older copy used only for testing. The current version of the Flutter Gallery now lives in https://github.com/flutter/gallery.
This commit is contained in:
Michael Thomsen
2020-03-16 02:31:42 -07:00
committed by GitHub
parent 1606d87834
commit e167181444
250 changed files with 85 additions and 103 deletions

View File

@@ -21,7 +21,7 @@ Future<String> _runWithMode(String mode, String deviceId) async {
}
Future<TaskResult> run() async {
cd('${flutterDirectory.path}/examples/flutter_gallery');
cd('${flutterDirectory.path}/dev/integration_tests/flutter_gallery');
final Device device = await devices.workingDevice;
await device.unlock();
final String deviceId = device.deviceId;

View File

@@ -16,7 +16,7 @@ const String packageName = 'io.flutter.demo.gallery';
const String activityName = 'io.flutter.demo.gallery.MainActivity';
class BackButtonMemoryTest extends MemoryTest {
BackButtonMemoryTest() : super('${flutterDirectory.path}/examples/flutter_gallery', 'test_memory/back_button.dart', packageName);
BackButtonMemoryTest() : super('${flutterDirectory.path}/dev/integration_tests/flutter_gallery', 'test_memory/back_button.dart', packageName);
@override
AndroidDevice get device => super.device as AndroidDevice;

View File

@@ -10,7 +10,7 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
Future<void> main() async {
await task(MemoryTest(
'${flutterDirectory.path}/examples/flutter_gallery',
'${flutterDirectory.path}/dev/integration_tests/flutter_gallery',
'test_memory/image_cache_memory.dart',
'io.flutter.demo.gallery',
).run);

View File

@@ -10,7 +10,7 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
Future<void> main() async {
await task(MemoryTest(
'${flutterDirectory.path}/examples/flutter_gallery',
'${flutterDirectory.path}/dev/integration_tests/flutter_gallery',
'test_memory/memory_nav.dart',
'io.flutter.demo.gallery',
).run);

View File

@@ -9,7 +9,7 @@ import 'package:flutter_devicelab/framework/adb.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
// This test runs "//examples/flutter_gallery/test/live_smoketest.dart", which communicates
// This test runs "//dev/integration_tests/flutter_gallery/test/live_smoketest.dart", which communicates
// with the Java code to report its status. If this test fails due to a problem on the Dart
// side, you can debug that by just running that file directly using `flutter run`.
@@ -18,7 +18,7 @@ Future<void> main() async {
await task(() async {
final Directory galleryDirectory =
dir('${flutterDirectory.path}/examples/flutter_gallery');
dir('${flutterDirectory.path}/dev/integration_tests/flutter_gallery');
await inDirectory(galleryDirectory, () async {
final Device device = await devices.workingDevice;
await device.unlock();

View File

@@ -26,7 +26,7 @@ class GalleryTransitionTest {
await device.unlock();
final String deviceId = device.deviceId;
final Directory galleryDirectory =
dir('${flutterDirectory.path}/examples/flutter_gallery');
dir('${flutterDirectory.path}/dev/integration_tests/flutter_gallery');
await inDirectory<void>(galleryDirectory, () async {
await flutter('packages', options: <String>['get']);

View File

@@ -13,7 +13,7 @@ import '../framework/framework.dart';
import '../framework/utils.dart';
final Directory _editedFlutterGalleryDir = dir(path.join(Directory.systemTemp.path, 'edited_flutter_gallery'));
final Directory flutterGalleryDir = dir(path.join(flutterDirectory.path, 'examples/flutter_gallery'));
final Directory flutterGalleryDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/flutter_gallery'));
TaskFunction createHotModeTest({String deviceIdOverride, Map<String, String> environment}) {
return () async {

View File

@@ -32,7 +32,7 @@ TaskFunction createTilesScrollPerfTest() {
TaskFunction createHomeScrollPerfTest() {
return PerfTest(
'${flutterDirectory.path}/examples/flutter_gallery',
'${flutterDirectory.path}/dev/integration_tests/flutter_gallery',
'test_driver/scroll_perf.dart',
'home_scroll_perf',
).run;
@@ -100,7 +100,7 @@ TaskFunction createPictureCachePerfTest() {
TaskFunction createFlutterGalleryStartupTest() {
return StartupTest(
'${flutterDirectory.path}/examples/flutter_gallery',
'${flutterDirectory.path}/dev/integration_tests/flutter_gallery',
).run;
}
@@ -118,7 +118,7 @@ TaskFunction createHelloWorldStartupTest() {
}
TaskFunction createFlutterGalleryCompileTest() {
return CompileTest('${flutterDirectory.path}/examples/flutter_gallery').run;
return CompileTest('${flutterDirectory.path}/dev/integration_tests/flutter_gallery').run;
}
TaskFunction createHelloWorldCompileTest() {
@@ -301,7 +301,7 @@ class WebCompileTest {
await _measureSize('hello_world', output, metrics);
return null;
});
await inDirectory<TaskResult>('${flutterDirectory.path}/examples/flutter_gallery', () async {
await inDirectory<TaskResult>('${flutterDirectory.path}/dev/integration_tests/flutter_gallery', () async {
await flutter('packages', options: <String>['get']);
await evalFlutter('build', options: <String>[
'web',
@@ -311,7 +311,7 @@ class WebCompileTest {
], environment: <String, String>{
'FLUTTER_WEB': 'true',
});
final String output = '${flutterDirectory.path}/examples/flutter_gallery/build/web/main.dart.js';
final String output = '${flutterDirectory.path}/dev/integration_tests/flutter_gallery/build/web/main.dart.js';
await _measureSize('flutter_gallery', output, metrics);
return null;
});

View File

@@ -12,7 +12,7 @@ import '../framework/framework.dart';
import '../framework/utils.dart';
final Directory _editedFlutterGalleryDir = dir(path.join(Directory.systemTemp.path, 'edited_flutter_gallery'));
final Directory flutterGalleryDir = dir(path.join(flutterDirectory.path, 'examples/flutter_gallery'));
final Directory flutterGalleryDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/flutter_gallery'));
const String kInitialStartupTime = 'InitialStartupTime';
const String kFirstRestartTime = 'FistRestartTime';