Bug 1432804 - Remove disabled attribute from Element Clear test. r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Wed, 24 Jan 2018 15:21:09 +0000
changeset 724137 f17e07a6c03fc5c9af5ed78e9d2302d82196bb84
parent 724080 0e62eb7804c00c0996a9bdde5350328a384fb7af
child 747065 54edddc65dd472f7c1dccc8746390d730e580815
push id96658
push userbmo:ato@sny.no
push dateWed, 24 Jan 2018 15:22:09 +0000
reviewersautomatedtester
bugs1432804
milestone60.0a1
Bug 1432804 - Remove disabled attribute from Element Clear test. r?automatedtester <select> is not a mutable form control element and it should not be possible to call the WebDriver:ElementClear command on it. We test this in test_select as part of element_clear.py in WPT, but the test uses a <select disabled> element which triggers the wrong code path in Marionette. MozReview-Commit-ID: 4ybEdLY6OEo
testing/web-platform/tests/webdriver/tests/interaction/element_clear.py
--- a/testing/web-platform/tests/webdriver/tests/interaction/element_clear.py
+++ b/testing/web-platform/tests/webdriver/tests/interaction/element_clear.py
@@ -185,17 +185,17 @@ def test_input_file_multiple(session, te
 
     response = element_clear(session, element)
     assert_success(response)
     assert element.property("value") == ""
 
 
 def test_select(session):
     session.url = inline("""
-        <select disabled>
+        <select>
           <option>foo
         </select>
         """)
     select = session.find.css("select", all=False)
     option = session.find.css("option", all=False)
 
     response = element_clear(session, select)
     assert_error(response, "invalid element state")