Commit e70cc825 authored by Robert Ogden's avatar Robert Ogden Committed by Commit Bot

Fix failing https_previews tests

TBR=ryansturm@chromium.org

Bug: 969794
Change-Id: If85e6dddb1c3d3923d966ec745e6a09ebb87b9b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643656Reviewed-by: default avatarRobert Ogden <robertogden@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665964}
parent 2962b57d
......@@ -72,9 +72,9 @@ class HttpsPreviewsBaseClass():
self.assertRegexpMatches(response.url, LITEPAGES_REGEXP)
self.assertEqual(200, response.status)
lite_page_responses += 1
if 'image/' in content_type:
self.assertRegexpMatches(response.url, LITEPAGES_REGEXP)
self.assertEqual(200, response.status)
if ('image/' in content_type
and re.match(LITEPAGES_REGEXP, response.url)
and 200 == response.status):
image_responses += 1
self.assertEqual(1, lite_page_responses)
......
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