Additional debugging info for Bug 608634. rs+=cpearce, a=NPOTB
authorJustin Wood <Callek@gmail.com>
Mon, 01 Nov 2010 23:28:01 -0400
changeset 56843 0c4fb639c49e8e102c9d2d9b106fec94d81f037c
parent 56842 f0129b7f9190c885a950633b72ef10b2210f1deb
child 56844 39a979e269314d44ae462327b9e27c9739aa0a07
push idunknown
push userunknown
push dateunknown
reviewersNPOTB
bugs608634
milestone2.0b8pre
Additional debugging info for Bug 608634. rs+=cpearce, a=NPOTB (Bug 608634 - [SeaMonkey] [mochi-1] test_error_in_video_document.html failing)
content/media/test/test_error_in_video_document.html
--- a/content/media/test/test_error_in_video_document.html
+++ b/content/media/test/test_error_in_video_document.html
@@ -24,17 +24,23 @@ https://bugzilla.mozilla.org/show_bug.cg
 
 var f = document.createElement("iframe");
 
 function check() {
   var v = document.body.getElementsByTagName("iframe")[0].contentDocument.body.getElementsByTagName("video")[0];
   
   // Debug info for Bug 608634
   ok(true, "iframe src=" + document.body.getElementsByTagName("iframe")[0].src);
-  ok(true, "video src=" + v.src);
+  ok(true, "v.readyState=" + v.readyState);
+  ok(true, "v.networkState=" + v.networkState);
+  if (v.error) {
+    ok(true, "v.error.code=" + v.error.code);
+  } else {
+    ok(true, "v.error is null");
+  }
   
   ok(v.error && v.error.code == MediaError.MEDIA_ERR_DECODE, "Must have error set to MEDIA_ERR_DECODE");
   SimpleTest.finish();
 }
 
 // Find an error test that we'd think we should be able to play (if it
 // wasn't already known to fail).
 var t = getPlayableVideo(gErrorTests);