Bug 760770 - Mark test_timeupdate_small_files.html's "got unexpected stalled after ended" as todo for seek.webm, for frequent intermittent failures; r=cpearce

This commit is contained in:
Ed Morley 2012-08-03 11:28:12 +01:00
parent 0bd6c4dc3e
commit a86a12d456

View File

@ -54,7 +54,11 @@ var eventsToLog = ["play", "canplay", "canplaythrough", "loadstart", "loadedmeta
"waiting", "pause"]; "waiting", "pause"];
function logEvent(event) { function logEvent(event) {
if (event.target.gotEnded > (event.type == "ended" ? 1 : 0)) { if (event.target.gotEnded > (event.type == "ended" ? 1 : 0)) {
if (event.target.currentSrc.slice(-9) == "seek.webm" && event.type == "stalled") {
todo(false, event.target.currentSrc + " got unexpected stalled after ended (bug 760770)");
} else {
ok(false, event.target.currentSrc + " got unexpected " + event.type + " after ended"); ok(false, event.target.currentSrc + " got unexpected " + event.type + " after ended");
}
} else { } else {
info(event.target.currentSrc + " got " + event.type); info(event.target.currentSrc + " got " + event.type);
} }