Search in sources :

Example 11 with SdkSuppress

use of android.support.test.filters.SdkSuppress in project weex-example by KalicyZhou.

the class BenchmarkTest method testScrollFPS.

@Repeat(TIMES)
@Test
@SdkSuppress(minSdkVersion = 23)
public void testScrollFPS() {
    UiObject2 uiObject2 = loadPageForFPS();
    if (uiObject2 != null) {
        uiObject2.scroll(Direction.DOWN, 6, SCROLL_SPEED);
        processGfxInfo(scrollFrameSeconds);
    }
}
Also used : UiObject2(android.support.test.uiautomator.UiObject2) Test(org.junit.Test) SdkSuppress(android.support.test.filters.SdkSuppress)

Aggregations

SdkSuppress (android.support.test.filters.SdkSuppress)11 Test (org.junit.Test)11 TargetApi (android.annotation.TargetApi)9 SQLiteStatement (android.database.sqlite.SQLiteStatement)7 SQLException (android.database.SQLException)2 UiObject2 (android.support.test.uiautomator.UiObject2)2 Espresso.onView (android.support.test.espresso.Espresso.onView)1 MediumTest (android.support.test.filters.MediumTest)1 WindowInsetsCompat (android.support.v4.view.WindowInsetsCompat)1 View (android.view.View)1 ImageView (android.widget.ImageView)1 Transaction (com.squareup.sqlbrite.BriteDatabase.Transaction)1 Employee (com.squareup.sqlbrite.TestDb.Employee)1 CountDownLatch (java.util.concurrent.CountDownLatch)1