Bug 1354211 - Remove Mn test for WebDriver:ElementClear. r=automatedtester
authorAndreas Tolfsen <ato@sny.no>
Sun, 31 Dec 2017 15:08:22 +0000
changeset 453281 15b42d200275ca628c605366f45b13711333f558
parent 453280 9ab0d72e5e0bdb73f6d0c88a563b2720d839bc5b
child 453282 e50d4cdb9fa7b19f8e2643c968ca89d9902b9f8d
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1354211
milestone59.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 1354211 - Remove Mn test for WebDriver:ElementClear. r=automatedtester This test passes after switching to the WebDriver conforming implementation of the Element Clear command, but in an effort to move us off proprietary Mn tests this patch removes the old tests. The new WPT tests introduces as part of this changeset are considered functionally equivalent or better. MozReview-Commit-ID: 8XqhnmCctoX
testing/marionette/harness/marionette_harness/tests/unit/test_clearing.py
testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
deleted file mode 100644
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_clearing.py
+++ /dev/null
@@ -1,72 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-from marionette_driver.by import By
-from marionette_driver.errors import InvalidElementStateException
-
-from marionette_harness import MarionetteTestCase
-
-
-class TestClear(MarionetteTestCase):
-    def testWriteableTextInputShouldClear(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID, "writableTextInput")
-        element.clear()
-        self.assertEqual("", element.get_property("value"))
-
-    def testTextInputShouldNotClearWhenReadOnly(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID,"readOnlyTextInput")
-        try:
-            element.clear()
-            self.fail("Should not have been able to clear")
-        except InvalidElementStateException:
-            pass
-
-    def testWritableTextAreaShouldClear(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID,"writableTextArea")
-        element.clear()
-        self.assertEqual("", element.get_property("value"))
-
-    def testTextAreaShouldNotClearWhenDisabled(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID,"textAreaNotenabled")
-        try:
-            element.clear()
-            self.fail("Should not have been able to clear")
-        except InvalidElementStateException:
-            pass
-
-    def testTextAreaShouldNotClearWhenReadOnly(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID,"textAreaReadOnly")
-        try:
-            element.clear()
-            self.fail("Should not have been able to clear")
-        except InvalidElementStateException:
-            pass
-
-    def testContentEditableAreaShouldClear(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        element = self.marionette.find_element(By.ID,"content-editable")
-        element.clear()
-        self.assertEqual("", element.text)
-
-    def testTextInputShouldNotClearWhenDisabled(self):
-        test_html = self.marionette.absolute_url("test_clearing.html")
-        self.marionette.navigate(test_html)
-        try:
-            element = self.marionette.find_element(By.ID,"textInputnotenabled")
-            self.assertFalse(element.is_enabled())
-            element.clear()
-            self.fail("Should not have been able to clear")
-        except InvalidElementStateException:
-            pass
--- a/testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
+++ b/testing/marionette/harness/marionette_harness/tests/unit/unit-tests.ini
@@ -24,17 +24,16 @@ skip-if = appname == 'fennec'
 skip-if = appname == 'fennec'
 [test_element_state.py]
 [test_element_state_chrome.py]
 skip-if = appname == 'fennec'
 [test_text.py]
 [test_text_chrome.py]
 skip-if = true # "Bug 896046"
 
-[test_clearing.py]
 [test_typing.py]
 
 [test_execute_async_script.py]
 [test_execute_script.py]
 [test_element_retrieval.py]
 [test_findelement_chrome.py]
 skip-if = appname == 'fennec'