Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: tools/chrome_proxy/webdriver/video.py

Issue 2704423002: Add Youtube auto play integration test (Closed)
Patch Set: Make test non-Android Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/video.py
diff --git a/tools/chrome_proxy/webdriver/video.py b/tools/chrome_proxy/webdriver/video.py
index ead67e1180fad729a67483a357380c1f0ff41629..c080b8b0c864d9c05a8ec9c53853f19900a71397 100644
--- a/tools/chrome_proxy/webdriver/video.py
+++ b/tools/chrome_proxy/webdriver/video.py
@@ -7,6 +7,7 @@ import time
import common
from common import TestDriver
from common import IntegrationTest
+from common import NotAndroid
class Video(IntegrationTest):
@@ -117,5 +118,17 @@ class Video(IntegrationTest):
if metrics['failed']:
raise Exception('Test failed!')
+ # Make sure YouTube autoplays.
+ @NotAndroid
+ def testYoutube(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.LoadURL('http://data-saver-test.appspot.com/youtube')
+ t.WaitForJavascriptExpression(
+ 'window.playerState == YT.PlayerState.PLAYING', 30)
+ for response in t.GetHTTPResponses():
+ if not response.url.startswith('https'):
+ self.assertHasChromeProxyViaHeader(response)
+
if __name__ == '__main__':
IntegrationTest.RunAllTests()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698