Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
Passdrm test requestMediaKeySystemAccess() exceptions.
Asserts run
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': 2 arguments required, but only 0 present.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess();\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess();\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': 2 arguments required, but only 1 present.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Unsupported keySystem or supportedConfigurations.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(null, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_dom("NotSupportedError", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(null, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:268:17
Pass
assert_not_equals("Unsupported keySystem or supportedConfigurations.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(undefined, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_dom("NotSupportedError", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(undefined, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:268:17
Pass
assert_not_equals("Unsupported keySystem or supportedConfigurations.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(1, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_dom("NotSupportedError", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(1, [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:268:17
Pass
assert_not_equals("Unsupported keySystem or supportedConfigurations.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess('unsupported', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_dom("NotSupportedError", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess('unsupported', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:268:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The keySystem parameter is empty.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess('', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess('', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The keySystem parameter is empty.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(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 () {\n                return navigator.requestMediaKeySystemAccess(new Uint8Array(0), [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Unsupported keySystem or supportedConfigurations.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem + '\\u263A', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_dom("NotSupportedError", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem + '\\u263A', [{}]);\n            }\"")
    at  /encrypted-media/util/utils.js:268:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The supportedConfigurations parameter is empty.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, []);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, []);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The object must have a callable @@iterator property.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, {});\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, {});\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The provided value cannot be converted to a sequence.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, \"invalid\");\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, \"invalid\");\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The provided value is not of type 'MediaKeySystemConfiguration'.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, [{}, 6]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, [{}, 6]);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Pass
assert_not_equals("Failed to execute 'requestMediaKeySystemAccess' on 'Navigator': The provided value is not of type 'MediaKeySystemConfiguration'.", "", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, [\"invalid\", \"upsupported\"]);\n            }\"")
    at  /encrypted-media/util/utils.js:257:13
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { throw error; }", "function \"function () {\n                return navigator.requestMediaKeySystemAccess(keysystem, [\"invalid\", \"upsupported\"]);\n            }\"")
    at  /encrypted-media/util/utils.js:264:17
Faildrm test MediaKeySystemAccess attribute syntax.assert_true: initDataType not supported expected true got false
    at https://www1.wpt.live/encrypted-media/scripts/syntax-mediakeysystemaccess.js:129:21
Asserts run
Pass
assert_equals("function", "function")
    at  /encrypted-media/scripts/syntax-mediakeysystemaccess.js:128:21
Fail
assert_true(false, "initDataType not supported")
    at  /encrypted-media/scripts/syntax-mediakeysystemaccess.js:129:21