Chromium Code Reviews| Index: functional/youtube.py |
| =================================================================== |
| --- functional/youtube.py (revision 112101) |
| +++ functional/youtube.py (working copy) |
| @@ -121,11 +121,11 @@ |
| expect_retval=self._pyauto.is_playing), |
| msg='Player did not enter the playing state') |
| - def PlayVideoAndAssert(self): |
| + def PlayVideoAndAssert(self, youtube_file='youtube.html'): |
|
Nirnimesh
2011/12/01 00:03:14
why not pass the youtube video's URL as argument t
|
| """Start video and assert the playing state.""" |
| 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_file) |
| self._pyauto.NavigateToURL(url) |
| self._pyauto.assertTrue(self._pyauto.WaitUntilPlayerReady(), |
| msg='Failed to load YouTube player') |