Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
Passorg.w3.clearkey test MediaKeys attribute syntax
Asserts run
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:16:17
Pass
assert_true(true, "initDataType should be supported")
    at  /encrypted-media/scripts/syntax-mediakeys.js:17:17
Pass
assert_equals("org.w3.clearkey", "org.w3.clearkey")
    at  /encrypted-media/scripts/syntax-mediakeys.js:21:17
Pass
assert_not_equals(object "[object MediaKeys]", null)
    at  /encrypted-media/scripts/syntax-mediakeys.js:24:17
Pass
assert_equals("object", "object")
    at  /encrypted-media/scripts/syntax-mediakeys.js:25:17
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:26:17
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:27:17
Pass
assert_not_equals(object "[object MediaKeys]", null)
    at  /encrypted-media/scripts/syntax-mediakeys.js:33:17
Pass
assert_equals("object", "object")
    at  /encrypted-media/scripts/syntax-mediakeys.js:34:17
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:35:17
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:36:17
Passorg.w3.clearkey test MediaKeys setServerCertificate() exceptions.
Asserts run
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:94:25
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeys.js:95:25
Pass
assert_not_equals(6, 0)
    at  /encrypted-media/scripts/syntax-mediakeys.js:103:25
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': 1 argument required, but only 0 present.", "", "function \"function (mk) {\n                return mk.setServerCertificate();\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate();\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk) {\n                return mk.setServerCertificate('');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate('');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk) {\n                return mk.setServerCertificate(null);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate(null);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk) {\n                return mk.setServerCertificate(undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate(undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk) {\n                return mk.setServerCertificate(1);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate(1);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'setServerCertificate' on 'MediaKeys': The serverCertificate parameter is empty.", "", "function \"function (mk) {\n                return mk.setServerCertificate(new Uint8Array(0));\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk) {\n                return mk.setServerCertificate(new Uint8Array(0));\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Passorg.w3.clearkey test MediaKeys setServerCertificate() syntax with non-empty certificate.
Asserts run
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeys.js:159:21
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeys.js:160:21
Pass
assert_true(true)
    at func ( /encrypted-media/scripts/syntax-mediakeys.js:123:17)
Pass
assert_false(false)
    at func ( /encrypted-media/scripts/syntax-mediakeys.js:141:17)
Pass
assert_not_equals(2, 0)
    at  /encrypted-media/scripts/syntax-mediakeys.js:171:21
Pass
assert_array_equals([false, false], [false, false])
    at  /encrypted-media/scripts/syntax-mediakeys.js:174:21