Definition at line 23 of file PlatformViewUiTests.java.
◆ setUp()
void dev.flutter.scenariosui.PlatformViewUiTests.setUp |
( |
| ) |
|
|
inline |
Definition at line 37 of file PlatformViewUiTests.java.
37 {
38 instrumentation = InstrumentationRegistry.getInstrumentation();
39 intent = new Intent(Intent.ACTION_MAIN);
40
41 intent.putExtra("use_android_view", true);
42 intent.putExtra("view_type", PlatformViewsActivity.TEXT_VIEW_PV);
43 }
◆ testPlatformView()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformView |
( |
| ) |
throws Exception |
|
inline |
Definition at line 46 of file PlatformViewUiTests.java.
46 {
47 intent.putExtra("scenario_name", "platform_view");
48 ScreenshotUtil.capture(
activityRule.launchActivity(intent), goldName(
"testPlatformView"));
49 }
◆ testPlatformViewClippath()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewClippath |
( |
| ) |
throws Exception |
|
inline |
Definition at line 81 of file PlatformViewUiTests.java.
81 {
82 intent.putExtra("scenario_name", "platform_view_clippath");
83 ScreenshotUtil.capture(
84 activityRule.launchActivity(intent), goldName(
"testPlatformViewClippath"));
85 }
◆ testPlatformViewCliprect()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewCliprect |
( |
| ) |
throws Exception |
|
inline |
Definition at line 67 of file PlatformViewUiTests.java.
67 {
68 intent.putExtra("scenario_name", "platform_view_cliprect");
69 ScreenshotUtil.capture(
70 activityRule.launchActivity(intent), goldName(
"testPlatformViewCliprect"));
71 }
◆ testPlatformViewCliprrect()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewCliprrect |
( |
| ) |
throws Exception |
|
inline |
Definition at line 74 of file PlatformViewUiTests.java.
74 {
75 intent.putExtra("scenario_name", "platform_view_cliprrect");
76 ScreenshotUtil.capture(
77 activityRule.launchActivity(intent), goldName(
"testPlatformViewCliprrect"));
78 }
◆ testPlatformViewMultiple()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewMultiple |
( |
| ) |
throws Exception |
|
inline |
Definition at line 52 of file PlatformViewUiTests.java.
52 {
53 intent.putExtra("scenario_name", "platform_view_multiple");
54 ScreenshotUtil.capture(
55 activityRule.launchActivity(intent), goldName(
"testPlatformViewMultiple"));
56 }
◆ testPlatformViewMultipleBackgroundForeground()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewMultipleBackgroundForeground |
( |
| ) |
throws Exception |
|
inline |
Definition at line 59 of file PlatformViewUiTests.java.
59 {
60 intent.putExtra("scenario_name", "platform_view_multiple_background_foreground");
61 ScreenshotUtil.capture(
63 goldName("testPlatformViewMultipleBackgroundForeground"));
64 }
◆ testPlatformViewMultipleWithoutOverlays()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewMultipleWithoutOverlays |
( |
| ) |
throws Exception |
|
inline |
Definition at line 111 of file PlatformViewUiTests.java.
111 {
112 intent.putExtra("scenario_name", "platform_view_multiple_without_overlays");
113 ScreenshotUtil.capture(
114 activityRule.launchActivity(intent), goldName(
"testPlatformViewMultipleWithoutOverlays"));
115 }
◆ testPlatformViewOpacity()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewOpacity |
( |
| ) |
throws Exception |
|
inline |
Definition at line 95 of file PlatformViewUiTests.java.
95 {
96 intent.putExtra("scenario_name", "platform_view_opacity");
97 ScreenshotUtil.capture(
98 activityRule.launchActivity(intent), goldName(
"testPlatformViewOpacity"));
99 }
◆ testPlatformViewRotate()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewRotate |
( |
| ) |
throws Exception |
|
inline |
Definition at line 102 of file PlatformViewUiTests.java.
102 {
103 intent.putExtra("scenario_name", "platform_view_rotate");
104 PlatformViewsActivity activity =
activityRule.launchActivity(intent);
105 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
106 instrumentation.waitForIdleSync();
107 ScreenshotUtil.capture(activity, goldName("testPlatformViewRotate"));
108 }
◆ testPlatformViewTransform()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewTransform |
( |
| ) |
throws Exception |
|
inline |
Definition at line 88 of file PlatformViewUiTests.java.
88 {
89 intent.putExtra("scenario_name", "platform_view_transform");
90 ScreenshotUtil.capture(
91 activityRule.launchActivity(intent), goldName(
"testPlatformViewTransform"));
92 }
◆ testPlatformViewTwoIntersectingOverlays()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewTwoIntersectingOverlays |
( |
| ) |
throws Exception |
|
inline |
Definition at line 118 of file PlatformViewUiTests.java.
118 {
119 intent.putExtra("scenario_name", "platform_view_two_intersecting_overlays");
120 ScreenshotUtil.capture(
121 activityRule.launchActivity(intent), goldName(
"testPlatformViewTwoIntersectingOverlays"));
122 }
◆ testPlatformViewWithoutOverlayIntersection()
void dev.flutter.scenariosui.PlatformViewUiTests.testPlatformViewWithoutOverlayIntersection |
( |
| ) |
throws Exception |
|
inline |
Definition at line 125 of file PlatformViewUiTests.java.
125 {
126 intent.putExtra("scenario_name", "platform_view_no_overlay_intersection");
127 ScreenshotUtil.capture(
129 goldName("testPlatformViewWithoutOverlayIntersection"));
130 }
◆ activityRule
Initial value:=
new ActivityTestRule<>(
PlatformViewsActivity.class, false, false)
Definition at line 28 of file PlatformViewUiTests.java.
The documentation for this class was generated from the following file: