Commit f0938d1e authored by samuong@chromium.org's avatar samuong@chromium.org

[chromedriver] Allow testing using newer versions than what Omaha reports

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287481 0039d316-1c4b-4281-b951-d872f2087c98
parent 21246404
......@@ -735,8 +735,9 @@ class ChromeDriverAndroidTest(ChromeDriverBaseTest):
for v in l['versions']:
if (('stable' in v['channel'] and 'stable' in _ANDROID_PACKAGE_KEY) or
('beta' in v['channel'] and 'beta' in _ANDROID_PACKAGE_KEY)):
self.assertEquals(v['version'],
self._driver.capabilities['version'])
omaha = map(int, v['version'].split('.'))
device = map(int, self._driver.capabilities['version'].split('.'))
self.assertTrue(omaha <= device)
return
raise RuntimeError('Malformed omaha JSON')
except urllib2.URLError as e:
......
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