summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-03-15 13:40:28 +0100
committerTobrun <tobrun@mapbox.com>2019-03-22 18:39:29 +0100
commit76df7d9cee6968e7e620f2f915254084f82d94ec (patch)
tree90375299226055c6061b052a8738836dfe054287 /platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt
parent5ea450b14bb84950f80bda3eeb9873fdbd736fc7 (diff)
downloadqtlocation-mapboxgl-76df7d9cee6968e7e620f2f915254084f82d94ec.tar.gz
[android] - add integration test suite
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt30
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt
new file mode 100644
index 0000000000..95f05566c3
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/integration/GLSurfaceViewReuseTest.kt
@@ -0,0 +1,30 @@
+package com.mapbox.mapboxsdk.integration
+
+import android.support.test.filters.LargeTest
+import android.support.test.runner.AndroidJUnit4
+import org.junit.Before
+import org.junit.Test
+import org.junit.runner.RunWith
+
+/**
+ * Regression test that validates if a GLSurfaceView surface can be recreated without crashing.
+ */
+@RunWith(AndroidJUnit4::class)
+class GLSurfaceViewReuseTest : BaseIntegrationTest() {
+
+ @Before
+ override fun beforeTest() {
+ super.beforeTest()
+ openFeature("RecyclerView GLSurfaceView")
+ }
+
+ @Test
+ @LargeTest
+ fun scrollRecylerView() {
+ device.waitForIdle()
+ scrollRecyclerViewTo("Twenty-one")
+ device.waitForIdle()
+ scrollRecyclerViewTo("One")
+ device.waitForIdle()
+ }
+} \ No newline at end of file