diff options
author | Xin Li <delphij@google.com> | 2018-06-08 11:08:06 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2018-06-08 11:08:06 -0700 |
commit | 3d7a02a34d2e0061d55d4a56721c261d94284eb6 (patch) | |
tree | c720748dfccbb7c22ffecdf5767b2af564ab703e /tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java | |
parent | d195718c2e752876c207fe6d3d7a9a7e5f3692d4 (diff) | |
parent | 35b6f17937f6923110447cc8db0721825fd6060d (diff) | |
download | TV-3d7a02a34d2e0061d55d4a56721c261d94284eb6.tar.gz |
Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master
Bug: 79597307
Change-Id: I2aed66909831766ab308bfe4dd32f310d533c05a
Diffstat (limited to 'tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java')
-rw-r--r-- | tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java b/tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java index 411a0bb9..ea80eb3d 100644 --- a/tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java +++ b/tests/jank/src/com/android/tv/tests/jank/MenuJankTest.java @@ -18,26 +18,25 @@ package com.android.tv.tests.jank; import android.support.test.filters.MediumTest; import android.support.test.jank.GfxMonitor; import android.support.test.jank.JankTest; - import com.android.tv.testing.uihelper.MenuHelper; -/** - * Jank tests for the program guide. - */ +/** Jank tests for the program guide. */ @MediumTest public class MenuJankTest extends LiveChannelsTestCase { private static final String STARTING_CHANNEL = "1"; /** - * The minimum number of frames expected during each jank test. - * If there is less the test will fail. To be safe we loop the action in each test to create - * twice this many frames under normal conditions. + * The minimum number of frames expected during each jank test. If there is less the test will + * fail. To be safe we loop the action in each test to create twice this many frames under + * normal conditions. + * * <p>200 is chosen so there will be enough frame for the 90th, 95th, and 98th percentile * measurements are significant. * * @see <a href="http://go/janktesthelper-best-practices">Jank Test Helper Best Practices</a> */ private static final int EXPECTED_FRAMES = 200; + protected MenuHelper mMenuHelper; @Override @@ -47,8 +46,7 @@ public class MenuJankTest extends LiveChannelsTestCase { Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice); } - @JankTest(expectedFrames = EXPECTED_FRAMES, - beforeTest = "fillTheMenuRowWithPreviousChannels") + @JankTest(expectedFrames = EXPECTED_FRAMES, beforeTest = "fillTheMenuRowWithPreviousChannels") @GfxMonitor(processName = Utils.LIVE_CHANNELS_PROCESS_NAME) public void testShowMenu() { int frames = 40; // measured by hand. |