Bug 1508794 - skip on debug org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. r=gbrown a=test-only
authorJoel Maher <jmaher@mozilla.com>
Tue, 11 Dec 2018 20:47:40 +0000
changeset 508962 7fb6548db01e2bd66521f7b012adda5acd65049e
parent 508961 d9b037ad82a57ffdac8bbded5baf32297db9eeff
child 508963 9b0e6c52f47096884e540f069194135a4ac56a34
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown, test-only
bugs1508794
milestone65.0
Bug 1508794 - skip on debug org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. r=gbrown a=test-only skip on debug org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS Differential Revision: https://phabricator.services.mozilla.com/D14190
mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/GeckoSessionTestRuleTest.kt
--- a/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/GeckoSessionTestRuleTest.kt
+++ b/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/GeckoSessionTestRuleTest.kt
@@ -1521,16 +1521,17 @@ class GeckoSessionTestRuleTest : BaseSes
 
         // The delegate set through delegateDuringNextWait
         // should have been cleared after the first wait.
         assertThat("Delegate should only run once", count, equalTo(1))
     }
 
     @WithDevToolsAPI
     @Test fun waitForChromeJS() {
+        assumeThat(sessionRule.env.isDebugBuild, equalTo(false))
         sessionRule.session.reload()
         sessionRule.session.waitForPageStop()
 
         assertThat("waitForChromeJS should return correct result",
                    sessionRule.waitForChromeJS("1+1") as Double, equalTo(2.0))
 
         // Because waitForChromeJS() counts as a wait event,
         // the previous onPageStop call is not included.