Bug 1314445 - Remove tests for CDM versions specified in keysystem string. r=gerald
MozReview-Commit-ID: F12I1cmfvke
--- a/dom/media/test/test_eme_requestKeySystemAccess.html
+++ b/dom/media/test/test_eme_requestKeySystemAccess.html
@@ -460,72 +460,16 @@ var tests = [
options: [
{
initDataTypes: ['webm'],
videoCapabilities: [{contentType: 'video/webm;codecs="bogus"'}],
}
],
shouldPass: false,
},
- {
- name: "CDM version less than",
- keySystem: CLEARKEY_KEYSYSTEM + ".0",
- options: [
- {
- label: SUPPORTED_LABEL,
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- }
- ],
- expectedConfig: {
- label: SUPPORTED_LABEL,
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- },
- shouldPass: true
- },
- {
- name: "CDM version equal to",
- keySystem: CLEARKEY_KEYSYSTEM + ".1",
- options: [
- {
- label: SUPPORTED_LABEL,
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- }
- ],
- expectedConfig: {
- label: SUPPORTED_LABEL,
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- },
- shouldPass: true
- },
- {
- name: "CDM version greater than",
- keySystem: CLEARKEY_KEYSYSTEM + ".2",
- options: [
- {
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- }
- ],
- shouldPass: false
- },
- {
- name: "Non-whole number CDM version",
- keySystem: CLEARKEY_KEYSYSTEM + ".0.1",
- options: [
- {
- initDataTypes: ['cenc'],
- videoCapabilities: [{contentType: 'video/mp4'}],
- }
- ],
- shouldPass: false
- },
];
function beginTest() {
Promise.all(tests.map(Test)).then(function() { SimpleTest.finish(); });
}
if (!IsMacOSSnowLeopardOrEarlier()) {
SimpleTest.waitForExplicitFinish();