Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dev.flutter.scenariosui.PlatformViewUiTests Class Reference

Public Member Functions

void setUp ()
 
void testPlatformView () throws Exception
 
void testPlatformViewMultiple () throws Exception
 
void testPlatformViewMultipleBackgroundForeground () throws Exception
 
void testPlatformViewCliprect () throws Exception
 
void testPlatformViewCliprrect () throws Exception
 
void testPlatformViewClippath () throws Exception
 
void testPlatformViewTransform () throws Exception
 
void testPlatformViewOpacity () throws Exception
 
void testPlatformViewRotate () throws Exception
 
void testPlatformViewMultipleWithoutOverlays () throws Exception
 
void testPlatformViewTwoIntersectingOverlays () throws Exception
 
void testPlatformViewWithoutOverlayIntersection () throws Exception
 

Public Attributes

ActivityTestRule< PlatformViewsActivityactivityRule
 

Detailed Description

Definition at line 23 of file PlatformViewUiTests.java.

Member Function Documentation

◆ 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 // Render a native android view.
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 }
ActivityTestRule< PlatformViewsActivity > activityRule

◆ 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(
62 activityRule.launchActivity(intent),
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(
128 activityRule.launchActivity(intent),
129 goldName("testPlatformViewWithoutOverlayIntersection"));
130 }

Member Data Documentation

◆ activityRule

ActivityTestRule<PlatformViewsActivity> dev.flutter.scenariosui.PlatformViewUiTests.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: