Skip test that crashes platform (flutter/engine#34675)

This commit is contained in:
Dan Field
2022-07-14 15:30:04 -07:00
committed by GitHub
parent e617b58a54
commit b0a6764623
2 changed files with 6 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import dev.flutter.scenarios.PlatformViewsActivity;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -124,9 +125,12 @@ public class PlatformViewWithSurfaceViewUiTest {
goldName("testPlatformViewWithoutOverlayIntersection"));
}
// TODO(dnfield): This is not safe until https://github.com/flutter/flutter/issues/31990
// is resolved.
@Ignore("not safe until https://github.com/flutter/flutter/issues/31990 is resolved")
@Test
public void testPlatformViewLargerThanDisplaySize() throws Exception {
// Regression test for https://github.com/flutter/flutter/issues/2897.
// Regression test for https://github.com/flutter/flutter/issues/28978.
intent.putExtra("scenario_name", "platform_view_larger_than_display_size");
ScreenshotUtil.capture(
activityRule.launchActivity(intent), goldName("testPlatformViewLargerThanDisplaySize"));

View File

@@ -117,7 +117,7 @@ class PlatformViewNoOverlayIntersectionScenario extends Scenario
/// A platform view that is larger than the display size.
/// This is only applicable on Android while using virtual displays.
/// Related issue: https://github.com/flutter/flutter/issues/2897.
/// Related issue: https://github.com/flutter/flutter/issues/28978.
class PlatformViewLargerThanDisplaySize extends Scenario
with _BasePlatformViewScenarioMixin {
/// Creates the PlatformView scenario.