Bug 1397141 - part8 : update test for video under 48x48. r=jya

In patch3, we remove the minimum resolution check, now the video under 48x48 can
be playback successfully. Therefore, removing them from error test and we should
ensure they can be playback.

MozReview-Commit-ID: BvLtr4DN1hU

--HG--
extra : rebase_source : 36cdd1e18cd41516319989b56e4e83888b0ecf50
This commit is contained in:
Alastor Wu 2017-09-13 15:06:22 +08:00
Родитель 0fc4a508a5
Коммит d3b21ca470
1 изменённых файлов: 6 добавлений и 8 удалений

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

@ -107,6 +107,12 @@ var gPlayedTests = [
{ name:"bug495794.ogg", type:"audio/ogg", duration:0.3 },
];
if (manifestNavigator().userAgent.includes("Windows") &&
manifestVideo().canPlayType('video/mp4; codecs="avc1.42E01E"')) {
gPlayedTests = gPlayedTests.concat({name: "red-46x48.mp4", type:"video/mp4", duration:1.00},
{name: "red-48x46.mp4", type:"video/mp4", duration:1.00});
}
// Used by test_mozLoadFrom. Need one test file per decoder backend, plus
// anything for testing clone-specific bugs.
var cloneKey = Math.floor(Math.random()*100000000);
@ -556,14 +562,6 @@ var gErrorTests = [
{ name:"bogus.duh", type:"bogus/duh" }
];
// Windows' H.264 decoder cannot handle H.264 streams with resolution
// less than 48x48 pixels. We refuse to play and error on such streams.
if (manifestNavigator().userAgent.includes("Windows") &&
manifestVideo().canPlayType('video/mp4; codecs="avc1.42E01E"')) {
gErrorTests = gErrorTests.concat({name: "red-46x48.mp4", type:"video/mp4"},
{name: "red-48x46.mp4", type:"video/mp4"});
}
// These files would get error after receiving "loadedmetadata", we would like
// to check duration in "onerror" and make sure the duration is still available.
var gDurationTests = [