Commit 54a69e06 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Fix flaky test ChromeDriverTest.testActionsTouchStart

ChromeDriverTest.testActionsTouchStart is flaky on Mac10.12 bot, fix
the test to pass on Mac bot.

Bug: 931440

Change-Id: I8d8d2080d20c23c8f4de6352eb8067ba3f09c9f9
Reviewed-on: https://chromium-review.googlesource.com/c/1471305Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632014}
parent 4ca4e8e4
......@@ -83,8 +83,6 @@ _NEGATIVE_FILTER = [
'ChromeDriverAndroidTest.testScreenOrientationAcrossMultipleTabs',
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=833
'ChromeDriverTest.testAlertOnNewWindow',
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=2777
'ChromeDriverTest.testActionsTouchStart',
]
_VERSION_SPECIFIC_FILTER = {}
......@@ -749,14 +747,14 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
self._driver.PerformActions(actions)
self.assertEquals(1, len(self._driver.FindElements('tag name', 'br')))
def testActionsTouchStart(self):
def testActionsTouchTap(self):
self._driver.Load(self.GetHttpUrlForFile('/chromedriver/empty.html'))
div = self._driver.ExecuteScript(
'document.body.innerHTML = "<div>old</div>";'
'var div = document.getElementsByTagName("div")[0];'
'div.style["width"] = "100px";'
'div.style["height"] = "100px";'
'div.addEventListener("touchstart", function() {'
'div.addEventListener("click", function() {'
' var div = document.getElementsByTagName("div")[0];'
' div.innerHTML="new<br>";'
'});'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment