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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user