예제 #1
0
 def test_playback_starts(self):
     """
     Test to make sure that playback of the video element starts for each
     video.
     """
     with self.marionette.using_context(Marionette.CONTEXT_CONTENT):
         for url in self.video_urls:
             try:
                 video = VideoPuppeteer(self.marionette, url, timeout=60)
                 # Second playback_started check in case video._start_time
                 # is not 0
                 self.check_playback_starts(video)
                 video.pause()
             except TimeoutException as e:
                 raise self.failureException(e)
예제 #2
0
 def test_playback_starts(self):
     """
     Test to make sure that playback of the video element starts for each
     video.
     """
     with self.marionette.using_context(Marionette.CONTEXT_CONTENT):
         for url in self.video_urls:
             try:
                 video = VideoPuppeteer(self.marionette, url, timeout=60)
                 # Second playback_started check in case video._start_time
                 # is not 0
                 self.check_playback_starts(video)
                 video.pause()
             except TimeoutException as e:
                 raise self.failureException(e)
예제 #3
0
 def test_playback_starts(self):
     with self.marionette.using_context('content'):
         for url in self.video_urls:
             try:
                 video = VP(self.marionette, url, timeout=60)
                 # Second playback_started check in case video._start_time
                 # is not 0
                 self.check_playback_starts(video)
                 video.pause()
                 src = video.video_src
                 if not src.startswith('mediasource'):
                     self.marionette.log('video is not '
                                         'mediasource: %s' % src,
                                         level='WARNING')
             except TimeoutException as e:
                 raise self.failureException(e)
예제 #4
0
 def test_playback_starts(self):
     with self.marionette.using_context('content'):
         for url in self.video_urls:
             try:
                 video = VP(self.marionette, url, timeout=60)
                 # Second playback_started check in case video._start_time
                 # is not 0
                 self.check_playback_starts(video)
                 video.pause()
                 src = video.video_src
                 if not src.startswith('mediasource'):
                     self.marionette.log('video is not '
                                         'mediasource: %s' % src,
                                         level='WARNING')
             except TimeoutException as e:
                 raise self.failureException(e)
예제 #5
0
 def test_playback_starts(self):
     """
     Test to make sure that playback of the video element starts for each
     video.
     """
     with self.marionette.using_context(Marionette.CONTEXT_CONTENT):
         for url in self.video_urls:
             try:
                 video = VP(self.marionette, url, timeout=60)
                 # Second playback_started check in case video._start_time
                 # is not 0
                 self.check_playback_starts(video)
                 video.pause()
                 src = video.video_src
                 if not src.startswith('mediasource'):
                     self.marionette.log('video is not '
                                         'mediasource: %s' % src,
                                         level='WARNING')
             except TimeoutException as e:
                 raise self.failureException(e)