Commit 42a58c30 authored by samuong's avatar samuong Committed by Commit bot

[chromedriver] Use hasTouchScreen capability to test for synthetic gestures in test.

BUG=chromedriver:1111
TBR=jbudorick@chromium.org

Review URL: https://codereview.chromium.org/1166633003

Cr-Commit-Position: refs/heads/master@{#333118}
parent 4e3ae148
...@@ -1045,9 +1045,7 @@ class ChromeDriverTest(ChromeDriverBaseTest): ...@@ -1045,9 +1045,7 @@ class ChromeDriverTest(ChromeDriverBaseTest):
if _ANDROID_PACKAGE_KEY: if _ANDROID_PACKAGE_KEY:
packages = ['chrome_stable', 'chrome_beta', 'chromedriver_webview_shell'] packages = ['chrome_stable', 'chrome_beta', 'chromedriver_webview_shell']
if _ANDROID_PACKAGE_KEY in packages: if _ANDROID_PACKAGE_KEY in packages:
self.assertRaisesRegexp(RuntimeError, self.assertFalse(self._driver.capabilities['hasTouchScreen'])
'Server returned error: Not Implemented',
self._driver.TouchPinch, 1, 2, 3.0)
def testHasTouchScreen(self): def testHasTouchScreen(self):
self.assertIn('hasTouchScreen', self._driver.capabilities) self.assertIn('hasTouchScreen', self._driver.capabilities)
......
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