Bug 1554189 - Disabled org.mozilla.geckoview.test.MediaDelegateTest.testDeviceRecordingEventAudioAndVideo on debug builds. r=gbrown
☠☠ backed out by 9d346f35d83a ☠ ☠
authorCsoregi Natalia <ncsoregi@mozilla.com>
Wed, 19 Jun 2019 05:57:49 +0000
changeset 479185 91dc017b27e8b43c832db1b2cf4258057d0d8e5f
parent 479184 046dd0da3b8e606ae33895248cd41e4ef03a4fcc
child 479186 9d346f35d83a1715fc2dc4aa54bb732eb016c09a
push id36173
push userrgurzau@mozilla.com
push dateWed, 19 Jun 2019 15:50:11 +0000
treeherdermozilla-central@10e3ed789e2b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1554189
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1554189 - Disabled org.mozilla.geckoview.test.MediaDelegateTest.testDeviceRecordingEventAudioAndVideo on debug builds. r=gbrown Differential Revision: https://phabricator.services.mozilla.com/D35158
mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/MediaDelegateTest.kt
--- a/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/MediaDelegateTest.kt
+++ b/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/MediaDelegateTest.kt
@@ -6,16 +6,17 @@ package org.mozilla.geckoview.test
 
 
 import android.support.test.filters.MediumTest
 import android.support.test.runner.AndroidJUnit4
 import android.util.Log
 import org.hamcrest.Matchers
 import org.junit.Test
 import org.junit.runner.RunWith
+import org.junit.Assume.assumeThat
 import org.mozilla.geckoview.GeckoSession
 import org.mozilla.geckoview.test.rule.GeckoSessionTestRule
 import org.mozilla.geckoview.test.util.Callbacks
 import org.mozilla.geckoview.GeckoSession.MediaDelegate.RecordingDevice
 
 @RunWith(AndroidJUnit4::class)
 @MediumTest
 class MediaDelegateTest : BaseSessionTest() {
@@ -131,20 +132,22 @@ class MediaDelegateTest : BaseSessionTes
         if (videoDevice != null) {
             requestRecordingPermission(allowAudio = false, allowCamera = true);
         }
 
     }
 
     @GeckoSessionTestRule.WithDevToolsAPI
     @Test fun testDeviceRecordingEventAudioAndVideo() {
+        // disabled test on debug builds Bug 1554189
+        assumeThat(sessionRule.env.isDebugBuild, equalTo(false))
         mainSession.loadTestPath(HELLO_HTML_PATH)
         mainSession.waitForPageStop()
 
         val devices = mainSession.waitForJS(
                 "window.navigator.mediaDevices.enumerateDevices()").asJSList<Map<String, String>>()
         val audioDevice = devices.find { map -> map["kind"] == "audioinput" }
         val videoDevice = devices.find { map -> map["kind"] == "videoinput" }
         if(audioDevice != null && videoDevice != null) {
             requestRecordingPermission(allowAudio = true, allowCamera = true);
         }
     }
-}
\ No newline at end of file
+}