Bug 838607 - Disable another click test, a=test-only

This commit is contained in:
Jonathan Griffin 2013-04-15 01:40:08 -07:00
parent 80a6327b09
commit 8e8fd0de06

View File

@ -5,6 +5,8 @@
import time import time
from marionette_test import MarionetteTestCase from marionette_test import MarionetteTestCase
"""
### Disabled due to bug 838607
class TestClick(MarionetteTestCase): class TestClick(MarionetteTestCase):
def test_click(self): def test_click(self):
test_html = self.marionette.absolute_url("test.html") test_html = self.marionette.absolute_url("test.html")
@ -13,19 +15,19 @@ class TestClick(MarionetteTestCase):
link.click() link.click()
self.assertEqual("Clicked", self.marionette.execute_script("return document.getElementById('mozLink').innerHTML;")) self.assertEqual("Clicked", self.marionette.execute_script("return document.getElementById('mozLink').innerHTML;"))
# disabled due to bug 860104 def testClickingALinkMadeUpOfNumbersIsHandledCorrectly(self):
#def testClickingALinkMadeUpOfNumbersIsHandledCorrectly(self): test_html = self.marionette.absolute_url("clicks.html")
# test_html = self.marionette.absolute_url("clicks.html") self.marionette.navigate(test_html)
# self.marionette.navigate(test_html) self.marionette.find_element("link text", "333333").click()
# self.marionette.find_element("link text", "333333").click() count = 0
# count = 0 while len(self.marionette.find_elements("id", "username")) == 0:
# while len(self.marionette.find_elements("id", "username")) == 0: count += 1
# count += 1 time.sleep(1)
# time.sleep(1) if count == 30:
# if count == 30: self.fail("Element id=username not found after 30 seconds")
# self.fail("Element id=username not found after 30 seconds")
# self.assertEqual(self.marionette.title, "XHTML Test Page") self.assertEqual(self.marionette.title, "XHTML Test Page")
"""
class TestClickChrome(MarionetteTestCase): class TestClickChrome(MarionetteTestCase):
def setUp(self): def setUp(self):