From 04518f8e9fe7fdf618c1c190230a05b5f2e2fd0f Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Wed, 6 Apr 2016 17:47:10 -0700 Subject: [PATCH] Remove tests that have been moved to CTS ag/906284 Change-Id: I9e5da9239a62dbc85a1b22f8fe8876da65675d9a --- core/tests/coretests/AndroidManifest.xml | 9 --- .../ApplyOverrideConfigurationActivity.java | 32 --------- .../ApplyOverrideConfigurationTest.java | 66 ------------------- 3 files changed, 107 deletions(-) delete mode 100644 core/tests/coretests/src/android/app/activity/ApplyOverrideConfigurationActivity.java delete mode 100644 core/tests/coretests/src/android/app/activity/ApplyOverrideConfigurationTest.java diff --git a/core/tests/coretests/AndroidManifest.xml b/core/tests/coretests/AndroidManifest.xml index b7926cfe59ad4..2452cfd66c3f6 100644 --- a/core/tests/coretests/AndroidManifest.xml +++ b/core/tests/coretests/AndroidManifest.xml @@ -1256,15 +1256,6 @@ - - - - - - - - { - - public static final int OVERRIDE_WIDTH = 9999; - - public ApplyOverrideConfigurationTest() { - super(ApplyOverrideConfigurationActivity.class); - } - - @Before - @Override - public void setUp() throws Exception { - super.setUp(); - injectInstrumentation(InstrumentationRegistry.getInstrumentation()); - getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_FREEZE_0); - } - - @Test - public void testConfigurationIsOverriden() throws Exception { - Configuration config = getActivity().getResources().getConfiguration(); - assertEquals(OVERRIDE_WIDTH, config.smallestScreenWidthDp); - - getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_FREEZE_90); - - config = getActivity().getResources().getConfiguration(); - assertEquals(OVERRIDE_WIDTH, config.smallestScreenWidthDp); - } - - @After - @Override - public void tearDown() throws Exception { - getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_UNFREEZE); - super.tearDown(); - } -}