mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -36,23 +36,7 @@ const invalidConfigs = [
|
|||
},
|
||||
{
|
||||
comment: 'Invalid scalability mode',
|
||||
config: {
|
||||
codec: 'vp8',
|
||||
width: 640,
|
||||
height: 480,
|
||||
scalabilityMode: "ABC"
|
||||
}
|
||||
},
|
||||
{
|
||||
comment: 'AVC not supported by VP8',
|
||||
config: {
|
||||
codec: 'vp8',
|
||||
width: 640,
|
||||
height: 480,
|
||||
avc: {
|
||||
format: "annexb"
|
||||
}
|
||||
}
|
||||
config: {codec: 'vp8', width: 640, height: 480, scalabilityMode: 'ABC'}
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -106,47 +90,46 @@ validButUnsupportedConfigs.forEach(entry => {
|
|||
|
||||
const validConfigs = [
|
||||
{
|
||||
codec: "avc1.42001E",
|
||||
hardwareAcceleration: "no-preference",
|
||||
codec: 'avc1.42001E',
|
||||
hardwareAcceleration: 'no-preference',
|
||||
width: 640,
|
||||
height: 480,
|
||||
bitrate: 5000000,
|
||||
framerate: 24,
|
||||
avc: {
|
||||
format: "annexb"
|
||||
},
|
||||
avc: {format: 'annexb'},
|
||||
futureConfigFeature: 'foo',
|
||||
},
|
||||
{
|
||||
codec: "vp8",
|
||||
hardwareAcceleration: "no-preference",
|
||||
codec: 'vp8',
|
||||
hardwareAcceleration: 'no-preference',
|
||||
width: 800,
|
||||
height: 600,
|
||||
bitrate: 7000000,
|
||||
bitrateMode: "variable",
|
||||
bitrateMode: 'variable',
|
||||
framerate: 60,
|
||||
scalabilityMode: "L1T2",
|
||||
scalabilityMode: 'L1T2',
|
||||
futureConfigFeature: 'foo',
|
||||
latencyMode: "quality"
|
||||
latencyMode: 'quality',
|
||||
avc: {format: 'annexb'}
|
||||
},
|
||||
{
|
||||
codec: "vp09.00.10.08",
|
||||
hardwareAcceleration: "no-preference",
|
||||
codec: 'vp09.00.10.08',
|
||||
hardwareAcceleration: 'no-preference',
|
||||
width: 1280,
|
||||
height: 720,
|
||||
bitrate: 7000000,
|
||||
bitrateMode: "constant",
|
||||
bitrateMode: 'constant',
|
||||
framerate: 25,
|
||||
futureConfigFeature: 'foo',
|
||||
latencyMode: "realtime",
|
||||
alpha: "discard"
|
||||
latencyMode: 'realtime',
|
||||
alpha: 'discard'
|
||||
}
|
||||
];
|
||||
|
||||
validConfigs.forEach(config => {
|
||||
promise_test(async t => {
|
||||
let support = await VideoEncoder.isConfigSupported(config);
|
||||
assert_true(support.supported);
|
||||
assert_implements_optional(support.supported);
|
||||
|
||||
let new_config = support.config;
|
||||
assert_false(new_config.hasOwnProperty('futureConfigFeature'));
|
||||
|
@ -163,6 +146,13 @@ validConfigs.forEach(config => {
|
|||
assert_equals(new_config.latencyMode, config.latencyMode);
|
||||
if (config.alpha)
|
||||
assert_equals(new_config.alpha, config.alpha);
|
||||
if (config.codec.startsWith('avc')) {
|
||||
if (config.avc) {
|
||||
assert_equals(new_config.avc.format, config.avc.format);
|
||||
}
|
||||
} else {
|
||||
assert_equals(new_config.avc, undefined);
|
||||
}
|
||||
}, "VideoEncoder.isConfigSupported() supports:" + JSON.stringify(config));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue