Bug 1427934. P1 - make logging less verbose. r=kaku
authorJW Wang <jwwang@mozilla.com>
Thu, 04 Jan 2018 11:18:19 +0800
changeset 449484 191b1802e9287db6120248cfa1bc26accf66974e
parent 449483 616f63419418e958feaa5a6df524a154905523f4
child 449485 f6ad3ada1068563c4409f881fcf0c5732030d502
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaku
bugs1427934
milestone59.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 1427934. P1 - make logging less verbose. r=kaku MozReview-Commit-ID: J1zxpmxLzy1
dom/media/test/test_seekToNextFrame.html
--- a/dom/media/test/test_seekToNextFrame.html
+++ b/dom/media/test/test_seekToNextFrame.html
@@ -27,17 +27,19 @@ function startTest(test, token) {
   manager.started(token, handler);
 
   v.src = test.name;
   v.name = test.name;
 
   function callSeekToNextFrame() {
     v.seekToNextFrame().then(
       () => {
-        ok(v.seenSeeking, "Should have already received seeking event.")
+        if (!v.seenSeeking) {
+          ok(false, v.token + ": Should have already received seeking event.");
+        }
         v.seenSeeking = false;
         if (!v.seenEnded)
           callSeekToNextFrame();
       },
       () => {
         // When seek reaches the end, the promise is resolved before 'ended'
         // is fired. The resolver calls callSeekToNextFrame() to schedule
         // another seek and then the 'ended' handler calls finish() to shut
@@ -61,17 +63,19 @@ function startTest(test, token) {
   }
 
   var onEnded = function(test, v) { return function() {
     v.seenEnded = true;
     finish();
   }}(test, v);
 
   var onSeeking = function(test, v) { return function() {
-    ok(!v.seenSeeking, "Should yet receive seeking event.")
+    if (v.seenSeeking) {
+      ok(false, v.token + ": Should yet receive seeking event.");
+    }
     v.seenSeeking = true;
   }}(test, v);
 
   v.addEventListener("loadedmetadata", onLoadedmetadata);
   v.addEventListener("seeking", onSeeking);
   v.addEventListener("ended", onEnded);
 
   document.body.appendChild(v);