Commit 9fe32dbb authored by Tricia Crichton's avatar Tricia Crichton Committed by Commit Bot

[ChromeDriver] Fix testLatestAndroidAppInstalled

Changed test code to use 'browserVersion' instead of 'version'
as key to retrieve and compare Chrome versions.

Bug: chromedriver:3015
Change-Id: I8f4dc5a26e433f2d0e2adc4f0f088e5d8d7f0316
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761474Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Tricia Crichton <triciac@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688545}
parent f2df053e
...@@ -2645,7 +2645,8 @@ class ChromeDriverAndroidTest(ChromeDriverBaseTest): ...@@ -2645,7 +2645,8 @@ class ChromeDriverAndroidTest(ChromeDriverBaseTest):
if (('stable' in v['channel'] and 'stable' in _ANDROID_PACKAGE_KEY) or if (('stable' in v['channel'] and 'stable' in _ANDROID_PACKAGE_KEY) or
('beta' in v['channel'] and 'beta' in _ANDROID_PACKAGE_KEY)): ('beta' in v['channel'] and 'beta' in _ANDROID_PACKAGE_KEY)):
omaha = map(int, v['version'].split('.')) omaha = map(int, v['version'].split('.'))
device = map(int, self._driver.capabilities['version'].split('.')) device = map(int,
self._driver.capabilities['browserVersion'].split('.'))
self.assertTrue(omaha <= device) self.assertTrue(omaha <= device)
return return
raise RuntimeError('Malformed omaha JSON') raise RuntimeError('Malformed omaha JSON')
......
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