Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
Passorg.w3.clearkey test MediaKeySession generateRequest() exceptions.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:72:21
Pass
assert_not_equals(7, 0)
    at  /encrypted-media/scripts/syntax-mediakeysession.js:80:21
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': 2 arguments required, but only 1 present.", "", "function \"function (mk1, type) {\n                return mk1.createSession().generateRequest(type);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk1, type) {\n                return mk1.createSession().generateRequest(type);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk2, type) {\n                return mk2.createSession().generateRequest(type, '');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk2, type) {\n                return mk2.createSession().generateRequest(type, '');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk3, type) {\n                return mk3.createSession().generateRequest(type, null);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk3, type) {\n                return mk3.createSession().generateRequest(type, null);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk4, type) {\n                return mk4.createSession().generateRequest(type, undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk4, type) {\n                return mk4.createSession().generateRequest(type, undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (mk5, type) {\n                return mk5.createSession().generateRequest(type, 1);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk5, type) {\n                return mk5.createSession().generateRequest(type, 1);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The initData parameter is empty.", "", "function \"function (mk6, type) {\n                return mk6.createSession().generateRequest(type, 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 (mk6, type) {\n                return mk6.createSession().generateRequest(type, new Uint8Array(0));\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'generateRequest' on 'MediaKeySession': The initDataType parameter is empty.", "", "function \"function (mk7, type) {\n                return mk7.createSession().generateRequest('', initData);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk7, type) {\n                return mk7.createSession().generateRequest('', initData);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Passorg.w3.clearkey test MediaKeySession load() exceptions.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:129:21
Pass
assert_not_equals(5, 0)
    at  /encrypted-media/scripts/syntax-mediakeysession.js:137:21
Pass
assert_not_equals("Failed to execute 'load' on 'MediaKeySession': 1 argument required, but only 0 present.", "", "function \"function (mk1) {\n                return mk1.createSession('temporary').load();\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk1) {\n                return mk1.createSession('temporary').load();\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'load' on 'MediaKeySession': The sessionId parameter is empty.", "", "function \"function (mk3) {\n                return mk3.createSession('temporary').load('');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk3) {\n                return mk3.createSession('temporary').load('');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'load' on 'MediaKeySession': The session type is not persistent.", "", "function \"function (mk4) {\n                return mk4.createSession('temporary').load(1);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk4) {\n                return mk4.createSession('temporary').load(1);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'load' on 'MediaKeySession': The session type is not persistent.", "", "function \"function (mk5) {\n                return mk5.createSession('temporary').load('!@#$%^&*()');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk5) {\n                return mk5.createSession('temporary').load('!@#$%^&*()');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'load' on 'MediaKeySession': The session type is not persistent.", "", "function \"function (mk6) {\n                return mk6.createSession('temporary').load('1234');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (mk6) {\n                return mk6.createSession('temporary').load('1234');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Passorg.w3.clearkey test if MediaKeySession generateRequest() resolves for various sessions
Asserts run
Pass
assert_true(true, "initDataType should be supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:203:21
Pass
assert_true(true)
    at test_generateRequest ( /encrypted-media/scripts/syntax-mediakeysession.js:194:13)
Pass
assert_equals("NotSupportedError", "NotSupportedError")
    at test_generateRequest ( /encrypted-media/scripts/syntax-mediakeysession.js:195:13)
Pass
assert_not_equals(5, 0)
    at  /encrypted-media/scripts/syntax-mediakeysession.js:211:21
Passorg.w3.clearkey test MediaKeySession update() exceptions.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:275:21
Pass
assert_not_equals(6, 0)
    at  /encrypted-media/scripts/syntax-mediakeysession.js:286:21
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': 1 argument required, but only 0 present.", "", "function \"function (s) {\n                return s.update();\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (s) {\n                return s.update();\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (s) {\n                return s.update('');\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (s) {\n                return s.update('');\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (s) {\n                return s.update(null);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (s) {\n                return s.update(null);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (s) {\n                return s.update(undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (s) {\n                return s.update(undefined);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.", "", "function \"function (s) {\n                return s.update(1);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function (s) {\n                return s.update(1);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'update' on 'MediaKeySession': The response parameter is empty.", "", "function \"function (s) {\n                return s.update(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 (s) {\n                return s.update(new Uint8Array(0));\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Passorg.w3.clearkey test MediaKeySession close() exceptions.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:312:21
Pass
assert_equals("InvalidStateError", "InvalidStateError")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:304:17
Passorg.w3.clearkey test MediaKeySession remove() exceptions.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:341:21
Pass
assert_equals("InvalidStateError", "InvalidStateError")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:335:17
Passorg.w3.clearkey test MediaKeySession attribute syntax.
Asserts run
Pass
assert_true(true, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysession.js:444:21
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:420:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:421:9)
Pass
assert_equals("string", "string")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:422:9)
Pass
assert_equals("number", "number")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:423:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:424:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:425:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:434:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:435:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:436:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:437:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:438:9)
Pass
assert_equals("", "")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:439:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:420:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:421:9)
Pass
assert_equals("string", "string")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:422:9)
Pass
assert_equals("number", "number")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:423:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:424:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:425:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:434:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:435:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:436:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:437:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:438:9)
Pass
assert_equals("", "")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:439:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:420:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:421:9)
Pass
assert_equals("string", "string")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:422:9)
Pass
assert_equals("number", "number")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:423:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:424:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:425:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:434:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:435:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:436:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:437:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:438:9)
Pass
assert_equals("", "")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:439:9)
Pass
assert_true(true)
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:417:13)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:420:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:421:9)
Pass
assert_equals("string", "string")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:422:9)
Pass
assert_equals("number", "number")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:423:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:424:9)
Pass
assert_equals("object", "object")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:425:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_true(true)
    at assertIsObjectOrFunction ( /encrypted-media/scripts/syntax-mediakeysession.js:405:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:434:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:435:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:436:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:437:9)
Pass
assert_equals("function", "function")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:438:9)
Pass
assert_equals("", "")
    at test_createSession ( /encrypted-media/scripts/syntax-mediakeysession.js:439:9)