Bug 1116006 - add debugging logs. r=cpearce
authorJW Wang <jwwang@mozilla.com>
Sun, 28 Dec 2014 22:33:00 +0100
changeset 247484 1869a533edc431d89b6920da90c0a41f79501cb3
parent 247483 0c04156cefc164c033463a67b5234ce1a4b95e86
child 247485 5ba4af8531c9f93b0b1eb39e0f98d5ff2a438312
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1116006
milestone37.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 1116006 - add debugging logs. r=cpearce
dom/media/test/test_bug448534.html
--- a/dom/media/test/test_bug448534.html
+++ b/dom/media/test/test_bug448534.html
@@ -14,36 +14,39 @@ https://bugzilla.mozilla.org/show_bug.cg
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=448535">Mozilla Bug 448534</a>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 var manager = new MediaTestManager;
 
 function loaded(event) {
   var v = event.target;
+  info(v.token + ": event=" + event.type);
   if (v._finished)
     return;
   v.play();
 }
 
 function started(event) {
   var v = event.target;
+  info(v.token + ": event=" + event.type);
   if (v._finished)
     return;
-  ok(!v.paused, "Video should not be paused while playing");
+  ok(!v.paused, v.token + ": Video should not be paused while playing");
   v.parentNode.removeChild(v);
   v._played = true;
 }
 
 function stopped(event) {
   var v = event.target;
+  info(v.token + ": event=" + event.type);
   if (v._finished)
     return;
   v._finished = true;
-  ok(v.paused, "Video should be paused after removing from the Document");
+  ok(v.paused, v.token + ": Video should be paused after removing from the Document");
   removeNodeAndSource(v);
   manager.finished(v.token);
 }
 
 
 function startTest(test, token) {
   var v = document.createElement('video');
   v.preload = "metadata";