mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1039901 - Enable the mp3 test on test_playback.html. r=jwwang
This commit is contained in:
parent
43b672cb05
commit
1eb1bd0d6a
@ -17,30 +17,11 @@ if (SpecialPowers.Services.appinfo.name == "B2G") {
|
||||
|
||||
var manager = new MediaTestManager;
|
||||
|
||||
function localCheckMetadata(msg, e, test) {
|
||||
if (test.width) {
|
||||
is(e.videoWidth, test.width, msg + " video width");
|
||||
}
|
||||
if (test.height) {
|
||||
is(e.videoHeight, test.height, msg + " video height");
|
||||
}
|
||||
if (test.duration) {
|
||||
// see bug 1039901 for skipping mp3 duration test on B2G
|
||||
if (SpecialPowers.Services.appinfo.name == "B2G" && /mp3$/.test(test.name)) {
|
||||
todo(false, "Fix mp3 duration bug on B2G");
|
||||
return;
|
||||
}
|
||||
ok(Math.abs(e.duration - test.duration) < 0.1,
|
||||
msg + " duration (" + e.duration + ") should be around " + test.duration);
|
||||
}
|
||||
}
|
||||
|
||||
function startTest(test, token) {
|
||||
var v = document.createElement('video');
|
||||
v.preload = "metadata";
|
||||
v.token = token;
|
||||
manager.started(token);
|
||||
var checkMetadata = localCheckMetadata;
|
||||
|
||||
v.src = test.name;
|
||||
v.name = test.name;
|
||||
|
Loading…
Reference in New Issue
Block a user