mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -84,7 +84,7 @@ function runTest(config, qualifier) {
|
|||
|
||||
// Tests for trivial configurations.
|
||||
expect_error(config.keysystem, [], 'TypeError', 'Empty supportedConfigurations');
|
||||
expect_config(config.keysystem, [{}], {}, 'Empty configuration');
|
||||
expect_error(config.keysystem, [{}], 'NotSupportedError', 'Empty configuration');
|
||||
|
||||
// Various combinations of supportedConfigurations.
|
||||
expect_config(config.keysystem, [{
|
||||
|
@ -155,15 +155,28 @@ function runTest(config, qualifier) {
|
|||
],
|
||||
}], 'NotSupportedError', 'Mismatched audio container/codec (%audiocontenttype)');
|
||||
|
||||
expect_config(config.keysystem, [
|
||||
{initDataTypes: ['fakeidt']},
|
||||
{initDataTypes: [config.initDataType]}
|
||||
], {initDataTypes: [config.initDataType]}, 'Two configurations, one supported');
|
||||
expect_config(config.keysystem, [{
|
||||
initDataTypes: ['fakeidt'],
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}, {
|
||||
initDataTypes: [config.initDataType],
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}
|
||||
], {
|
||||
initDataTypes: [config.initDataType],
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}, 'Two configurations, one supported');
|
||||
|
||||
expect_config(config.keysystem, [
|
||||
{initDataTypes: [config.initDataType]},
|
||||
{}
|
||||
], {initDataTypes: [config.initDataType]}, 'Two configurations, both supported');
|
||||
expect_config(config.keysystem, [{
|
||||
initDataTypes: [config.initDataType],
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}, {
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}
|
||||
], {
|
||||
initDataTypes: [config.initDataType],
|
||||
videoCapabilities: [{contentType: config.videoType}]
|
||||
}, 'Two configurations, both supported');
|
||||
|
||||
// Audio MIME type does not support video codecs.
|
||||
expect_error(config.keysystem, [{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue