diff options
author | Yorke Lee <yorkelee@google.com> | 2015-10-02 11:43:14 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-10-02 11:43:14 -0700 |
commit | e29e4b1b0178c6cb8139af028114887071dd287e (patch) | |
tree | 6979f8e0b9492a449d04be34759e38efee0e9b09 /tests/src/com/android | |
parent | 2159803d76ee72cb2561b56c17c377f19e5fdf37 (diff) |
Temporarily suppress OnboardingControllerTests
OnboardingActivity is not referenced yet and its supporting
components will get stripped out by proguard causing the tests
to fail.
Change-Id: I71361b021f287e696c3732568ccc646c1ed9fb0b
Diffstat (limited to 'tests/src/com/android')
-rw-r--r-- | tests/src/com/android/dialer/onboard/OnboardingControllerTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/com/android/dialer/onboard/OnboardingControllerTest.java b/tests/src/com/android/dialer/onboard/OnboardingControllerTest.java index d9c8ce5c0..3ca39a72f 100644 --- a/tests/src/com/android/dialer/onboard/OnboardingControllerTest.java +++ b/tests/src/com/android/dialer/onboard/OnboardingControllerTest.java @@ -17,6 +17,7 @@ package com.android.dialer.onboard; import android.app.Activity; import android.test.AndroidTestCase; +import android.test.suitebuilder.annotation.Suppress; public class OnboardingControllerTest extends AndroidTestCase { private MockOnboardUi mOnboardUi; @@ -68,12 +69,14 @@ public class OnboardingControllerTest extends AndroidTestCase { mController = new OnboardingController(mOnboardUi); } + @Suppress public void testNoScreensToDisplay_OnboardingFlowImmediatelyCompleted() { mController.showNextScreen(); assertEquals(-1, mOnboardUi.currentScreen); assertTrue(mOnboardUi.completedOnboardingFlow); } + @Suppress public void testSkipAllScreens_OnboardingFlowImmediatelyCompleted() { mController.addScreen(new MockScreen(false /* shouldShowScreen */, true /* canSkipScreen */)); @@ -86,6 +89,7 @@ public class OnboardingControllerTest extends AndroidTestCase { assertTrue(mOnboardUi.completedOnboardingFlow); } + @Suppress public void testFirstScreenNotNeeded_ShowsSecondScreen() { mController.addScreen(new MockScreen(false /* shouldShowScreen */, false /* canSkipScreen */)); @@ -95,6 +99,7 @@ public class OnboardingControllerTest extends AndroidTestCase { assertEquals(1, mOnboardUi.currentScreen); } + @Suppress public void testScreenRequired() { final MockScreen mockScreen = new MockScreen(true /* shouldShowScreen */, false /* canSkipScreen */); @@ -128,6 +133,7 @@ public class OnboardingControllerTest extends AndroidTestCase { * For example, setting the default dialer in the first screen will automatically grant * permissions such that the second permissions screen is no longer needed. */ + @Suppress public void testFirstScreenCompleted_SkipsSecondScreen() { final MockScreen mockScreen1 = new MockScreen(true /* shouldShowScreen */, true /* canSkipScreen */); @@ -151,6 +157,7 @@ public class OnboardingControllerTest extends AndroidTestCase { * Verifies the use case where skipping the first screen will proceed to show the second screen * since the necessary conditions to skip the second screen have not been met. */ + @Suppress public void testFirstScreenSkipped_ShowsSecondScreen() { final MockScreen mockScreen1 = new MockScreen(true /* shouldShowScreen */, true /* canSkipScreen */); |