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

Unified Diff: functional/youtube.py

Issue 8764007: Adding Youtube dropped frames performance measurement for different types of videos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: '' Created 9 years 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 | « functional/perf.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/youtube.py
===================================================================
--- functional/youtube.py (revision 112384)
+++ functional/youtube.py (working copy)
@@ -121,11 +121,18 @@
expect_retval=self._pyauto.is_playing),
msg='Player did not enter the playing state')
- def PlayVideoAndAssert(self):
- """Start video and assert the playing state."""
+ def PlayVideoAndAssert(self, youtube_video='zuzaxlddWbk'):
+ """Start video and assert the playing state.
+
+ By default test uses http://www.youtube.com/watch?v=zuzaxlddWbki.
+
+ Args:
+ youtube_video: The string ID of the youtube video to play.
+ """
self._pyauto.assertTrue(self._pyauto.IsFlashPluginEnabled(),
msg='From here Flash plugin is disabled or not available')
- url = self._pyauto.GetHttpURLForDataPath('media', 'youtube.html')
+ url = self._pyauto.GetHttpURLForDataPath(
+ 'media', 'youtube.html?video=' + youtube_video)
self._pyauto.NavigateToURL(url)
self._pyauto.assertTrue(self._pyauto.WaitUntilPlayerReady(),
msg='Failed to load YouTube player')
« no previous file with comments | « functional/perf.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698