summaryrefslogtreecommitdiffstats
path: root/dom/media/test/test_error_in_video_document.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/test/test_error_in_video_document.html')
-rw-r--r--dom/media/test/test_error_in_video_document.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/dom/media/test/test_error_in_video_document.html b/dom/media/test/test_error_in_video_document.html
index e376ea95e3..b48e7745d0 100644
--- a/dom/media/test/test_error_in_video_document.html
+++ b/dom/media/test/test_error_in_video_document.html
@@ -31,7 +31,7 @@ function check() {
// Debug info for Bug 608634
ok(true, "iframe src=" + document.body.getElementsByTagName("iframe")[0].src);
- is(v.readyState, v.HAVE_NOTHING, "Ready state");
+ is(v.readyState, v.HAVE_NOTHING, "Ready state for " + document.body.getElementsByTagName("iframe")[0].src);
isnot(v.error, null, "Error object");
is(v.networkState, v.NETWORK_NO_SOURCE, "Network state");
@@ -40,15 +40,16 @@ function check() {
}
// 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);
+// wasn't already known to fail). This needs to fail early: for example,
+// incorrect metadata, not correct metadata but incorrect encoded packets.
+var t = "bug1535980.webm";
if (!t) {
todo(false, "No types supported");
} else {
SimpleTest.waitForExplicitFinish();
var f = document.createElement("iframe");
- f.src = t.name;
+ f.src = t;
f.addEventListener("load", check);
document.body.appendChild(f);
}