Add a test of an Android platform view that draws a gradient (#153878)

Closes https://github.com/flutter/flutter/issues/152376.

The gradient, for posterity, looks like this:

<img src="https://github.com/user-attachments/assets/bed9599a-4e16-499c-af79-b51980095e89" width="150">

Let's see if CI agrees!

/cc @johnmccutchan
This commit is contained in:
Matan Lurey
2024-08-23 11:25:40 -07:00
committed by GitHub
parent 327193af9a
commit 5e194383af
8 changed files with 189 additions and 17 deletions

View File

@@ -44,6 +44,27 @@ Future<void> runFlutterDriverAndroidTests() async {
'flutter',
<String>[
'drive',
'lib/blue_rectangle_main.dart',
// There are no reason to enable development flags for this test.
// Disable them to work around flakiness issues, and in general just
// make less things start up unnecessarily.
'--no-dds',
'--no-enable-dart-profiling',
'--test-arguments=test',
'--test-arguments=--reporter=expanded',
],
workingDirectory: path.join(
'dev',
'integration_tests',
'android_driver_test',
),
);
await runCommand(
'flutter',
<String>[
'drive',
'lib/blue_orange_gradient_platform_view_main.dart',
// There are no reason to enable development flags for this test.
// Disable them to work around flakiness issues, and in general just
// make less things start up unnecessarily.