Bug 1548446 - part1 : add more debug log in 'test_webvtt_seeking.html'. r=jolin
authoralwu <alwu@mozilla.com>
Mon, 13 May 2019 18:46:01 +0000
changeset 535548 42f2738786c9f27eba201a15214b62b05e99fc67
parent 535547 eb14a49fc4df556927806f4f810329c90f46cd02
child 535549 770dba43cd13487111289577e0097821d7abb624
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjolin
bugs1548446
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1548446 - part1 : add more debug log in 'test_webvtt_seeking.html'. r=jolin Add more log in order to help debug and know where we get failure. Differential Revision: https://phabricator.services.mozilla.com/D30953
dom/media/test/test_webvtt_seeking.html
--- a/dom/media/test/test_webvtt_seeking.html
+++ b/dom/media/test/test_webvtt_seeking.html
@@ -79,30 +79,32 @@ function createCues(video) {
 
 async function startVideo(video) {
   info(`start play video`);
   const played = video && await video.play().then(() => true, () => false);
   ok(played, "video has started playing");
 }
 
 async function waitUntilCueIsShowing(cue) {
+  info(`wait until cue ${cue.id} shows`);
   // cue has not been showing yet.
   if (!cue.getActive) {
     await once(cue, "enter");
   }
   info(`cue ${cue.id} is showing`);
 }
 
 async function seekVideo(video, time) {
   ok(isInRange(time, CUES_INFO[0].startTime, CUES_INFO[0].endTime) ||
      isInRange(time, CUES_INFO[1].startTime, CUES_INFO[1].endTime),
      `seek target time ${time} is within the correct range`)
   info(`seek video to ${time}`);
   video.currentTime = time;
   await once(video, "seeked");
+  info(`seek succeeded, current time=${video.currentTime}`);
 }
 
 function isInRange(value, lowerBound, higherBound) {
   return lowerBound <= value && value <= higherBound;
 }
 </script>
 </body>
 </html>