Commit d1745f82 authored by rajendrant's avatar rajendrant Committed by Commit Bot

Unflake some tests

Also skip lofi fallback test in M74, that fails due to server support
removed.

Bug: 934875
Change-Id: Ic5d0d00d63d95cf458e0afc3eaf0a3cf16743c01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611078Reviewed-by: default avatarRobert Ogden <robertogden@chromium.org>
Commit-Queue: rajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659254}
parent 91aa339e
...@@ -135,6 +135,8 @@ class LitePage(IntegrationTest): ...@@ -135,6 +135,8 @@ class LitePage(IntegrationTest):
test_driver.LoadURL( test_driver.LoadURL(
'http://check.googlezip.net/cacheable/test.html?age_seconds=360') 'http://check.googlezip.net/cacheable/test.html?age_seconds=360')
test_driver.SleepUntilHistogramHasEntry(
'Previews.StalePreviewTimestampShown')
histogram = test_driver.GetBrowserHistogram( histogram = test_driver.GetBrowserHistogram(
'Previews.StalePreviewTimestampShown') 'Previews.StalePreviewTimestampShown')
self.assertEqual(1, histogram['count']) self.assertEqual(1, histogram['count'])
...@@ -158,7 +160,7 @@ class LitePage(IntegrationTest): ...@@ -158,7 +160,7 @@ class LitePage(IntegrationTest):
# Verifies Lo-Fi fallback via the page-policies server directive. # Verifies Lo-Fi fallback via the page-policies server directive.
# Note: this test is for the CPAT protocol change in M-61. # Note: this test is for the CPAT protocol change in M-61.
@ChromeVersionEqualOrAfterM(61) @ChromeVersionEqualOrAfterM(61)
@ChromeVersionBeforeM(75) @ChromeVersionBeforeM(74)
def testLitePageFallbackViaPagePolicies(self): def testLitePageFallbackViaPagePolicies(self):
with TestDriver() as test_driver: with TestDriver() as test_driver:
test_driver.AddChromeArg('--enable-spdy-proxy-auth') test_driver.AddChromeArg('--enable-spdy-proxy-auth')
......
...@@ -78,6 +78,7 @@ class Smoke(IntegrationTest): ...@@ -78,6 +78,7 @@ class Smoke(IntegrationTest):
t.LoadURL('http://check.googlezip.net/test.html') t.LoadURL('http://check.googlezip.net/test.html')
t.LoadURL('http://check.googlezip.net/test.html') t.LoadURL('http://check.googlezip.net/test.html')
t.SleepUntilHistogramHasEntry("DataReductionProxy.Pingback.Succeeded") t.SleepUntilHistogramHasEntry("DataReductionProxy.Pingback.Succeeded")
t.SleepUntilHistogramHasEntry("DataReductionProxy.Pingback.Attempted")
# Verify one pingback attempt that was successful. # Verify one pingback attempt that was successful.
attempted = t.GetBrowserHistogram('DataReductionProxy.Pingback.Attempted') attempted = t.GetBrowserHistogram('DataReductionProxy.Pingback.Attempted')
self.assertEqual(1, attempted['count']) self.assertEqual(1, attempted['count'])
......
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