Bug 792935 - Add DASH to gPlayedTests and gPlayTests r=cpearce

This commit is contained in:
Steve Workman 2013-01-28 18:34:28 -08:00
Родитель 5c70bc4041
Коммит 7b8fecff50
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -39,6 +39,7 @@ var gPlayedTests = [
{ name:"seek.webm", type:"video/webm", duration:3.966 },
{ name:"gizmo.mp4", type:"video/mp4", duration:5.56 },
{ name:"owl.mp3", type:"audio/mpeg", duration:3.29 },
{ name:"dash-manifest.mpd", type:"application/dash+xml", duration:3.966 },
];
// Used by test_mozLoadFrom. Need one test file per decoder backend, plus
@ -162,6 +163,9 @@ var gPlayTests = [
{ name:"small-shot.mp3", type:"audio/mpeg", duration:0.27 },
{ name:"owl.mp3", type:"audio/mpeg", duration:3.29 },
// DASH WebM MPD
{ name:"dash-manifest.mpd", type:"application/dash+xml", duration:3.966 },
// Invalid file
{ name:"bogus.duh", type:"bogus/duh", duration:Number.NaN }
];

Просмотреть файл

@ -207,7 +207,7 @@ function createTestArray() {
}
function startTest(test, token) {
var elemType = /^audio/.test(test.type) ? "audio" : "video";
var elemType = getMajorMimeType(test.type);
var element = document.createElement(elemType);
element.src = test.name;
element.token = token;