Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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<PlatformViewsActivity> 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");
}
}
1 change: 1 addition & 0 deletions testing/scenario_app_android_output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DrawSolidBlueScreenTest.png
ExternalTextureTests_testCanvasSurface.png
ExternalTextureTests_testCroppedMediaSurface_bottomLeft.png
ExternalTextureTests_testCroppedMediaSurface_topRight.png
Expand Down