Refactor external_ui without making any name changes (I think) (#142192)
Work towards https://github.com/flutter/flutter/issues/142178. --- This PR makes no _behavioral_ changes to executed code, and instead focuses on organization and naming: 1. Extended the README to explain the intent of the test, as well as how to run it 1. Renamed `main.dart` and `main_test.dart` to `frame_rate_main.dart` and `frame_rate_test.dart` (we'll add more) 1. Did some refactoring of the test to make it more obvious what is being asserted (i.e. `widgetBuilds` and friends)
This commit is contained in:
@@ -8,5 +8,5 @@ import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
await task(createExternalUiIntegrationTest());
|
||||
await task(createExternalUiFrameRateIntegrationTest());
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import 'package:flutter_devicelab/tasks/integration_tests.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
||||
await task(createExternalUiIntegrationTest());
|
||||
await task(createExternalUiFrameRateIntegrationTest());
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ TaskFunction createIntegrationTestFlavorsTest({Map<String, String>? environment}
|
||||
).call;
|
||||
}
|
||||
|
||||
TaskFunction createExternalUiIntegrationTest() {
|
||||
TaskFunction createExternalUiFrameRateIntegrationTest() {
|
||||
return DriverTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/external_ui',
|
||||
'lib/main.dart',
|
||||
'lib/frame_rate_main.dart',
|
||||
).call;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user