Bug 1413821 - Skip final assertion in test_inclusive_descendant for Android. r=test-fix a=test-fix
authorHenrik Skupin <mail@hskupin.info>
Thu, 02 Nov 2017 08:43:26 +0100
changeset 443049 b5a3b8ef6902998507fc881b6d628b055457fe31
parent 443048 cb05c80b965520825841dfa003177790faff635b
child 443054 10777aa50c49e929145fcd84a10892c0db099862
child 443061 a86ac3dafdf5b4fc5e874dce2be0c1ab87a2ec72
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-fix, test-fix
bugs1413821
milestone58.0a1
first release with
nightly linux32
b5a3b8ef6902 / 58.0a1 / 20171102100041 / files
nightly mac
b5a3b8ef6902 / 58.0a1 / 20171102100041 / files
nightly win32
b5a3b8ef6902 / 58.0a1 / 20171102100041 / files
nightly win64
b5a3b8ef6902 / 58.0a1 / 20171102100041 / files
nightly linux64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly mac
nightly win32
nightly win64
Bug 1413821 - Skip final assertion in test_inclusive_descendant for Android. r=test-fix a=test-fix MozReview-Commit-ID: 7fadvwbofPb
testing/marionette/harness/marionette_harness/tests/unit/test_click.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_click.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_click.py
@@ -135,17 +135,20 @@ class TestLegacyClick(MarionetteTestCase
         # This tests that the pointer-interactability test does not
         # cause an ElementClickInterceptedException.
         #
         # At a <select multiple>'s in-view centre point, you might
         # find a fully rendered <option>.  Marionette should test that
         # the paint tree at this point _contains_ <option>, not that the
         # first element of the paint tree is _equal_ to <select>.
         select.click()
-        self.assertNotEqual(select.get_property("selectedIndex"), -1)
+
+        # Bug 1413821 - Click does not select an option on Android
+        if self.marionette.session_capabilities["browserName"] != "fennec":
+            self.assertNotEqual(select.get_property("selectedIndex"), -1)
 
     def test_container_is_select(self):
         self.marionette.navigate(inline("""
             <select>
               <option>foo</option>
             </select>"""))
         option = self.marionette.find_element(By.TAG_NAME, "option")
         option.click()