diff --git a/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/DrawSolidBlueScreenTest.java b/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/DrawSolidBlueScreenTest.java new file mode 100644 index 0000000000000..b61a69f7848bd --- /dev/null +++ b/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenariosui/DrawSolidBlueScreenTest.java @@ -0,0 +1,27 @@ +package dev.flutter.scenariosui; + +import android.content.Intent; +import androidx.annotation.NonNull; +import androidx.test.filters.LargeTest; +import androidx.test.rule.ActivityTestRule; +import androidx.test.runner.AndroidJUnit4; +import dev.flutter.scenarios.PlatformViewsActivity; +import org.junit.Rule; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(AndroidJUnit4.class) +@LargeTest +public final class DrawSolidBlueScreenTest { + @Rule @NonNull + public ActivityTestRule activityRule = + new ActivityTestRule<>( + PlatformViewsActivity.class, /*initialTouchMode=*/ false, /*launchActivity=*/ false); + + @Test + public void test() throws Exception { + Intent intent = new Intent(Intent.ACTION_MAIN); + intent.putExtra("scenario_name", "solid_blue"); + ScreenshotUtil.capture(activityRule.launchActivity(intent), "DrawSolidBlueScreenTest"); + } +} diff --git a/testing/scenario_app_android_output.txt b/testing/scenario_app_android_output.txt index 49a7bc30e9e7a..da412e233e0ce 100644 --- a/testing/scenario_app_android_output.txt +++ b/testing/scenario_app_android_output.txt @@ -1,3 +1,4 @@ +DrawSolidBlueScreenTest.png ExternalTextureTests_testCanvasSurface.png ExternalTextureTests_testCroppedMediaSurface_bottomLeft.png ExternalTextureTests_testCroppedMediaSurface_topRight.png