summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/utils/GestureUtils.java
blob: 37c18399e45f41c5ebe3bddbdb5c1bd6d82199a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.mapbox.mapboxsdk.testapp.utils;

import android.support.annotation.IdRes;

import com.mapbox.mapboxsdk.testapp.R;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.doubleClick;
import static android.support.test.espresso.matcher.ViewMatchers.withId;

public class GestureUtils {

    public static void doubleClickGesture(@IdRes int id){
        onView(withId(id)).perform(doubleClick());
    }

}