Summary

Harness status: OK

Found 21 tests

Details

ResultTest NameMessage
PassRTCError constructor with errorDetail and message
Asserts run
Pass
assert_equals("message", "message")
    at Test.<anonymous> ( /webrtc/RTCError.html:12:3)
Pass
assert_equals("data-channel-failure", "data-channel-failure")
    at Test.<anonymous> ( /webrtc/RTCError.html:13:3)
PassRTCError constructor's message argument is optional
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /webrtc/RTCError.html:18:3)
PassRTCError constructor throws TypeError if arguments are missing
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new RTCError();   }")
    at Test.<anonymous> ( /webrtc/RTCError.html:22:3)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new RTCError({});  // {errorDetail} is missing.   }")
    at Test.<anonymous> ( /webrtc/RTCError.html:25:3)
PassRTCError constructor throws TypeError if the errorDetail is invalid
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new RTCError({errorDetail:'invalid-error-detail'}, 'message');   }")
    at Test.<anonymous> ( /webrtc/RTCError.html:31:3)
PassRTCError.name is 'OperationError'
Asserts run
Pass
assert_equals("OperationError", "OperationError")
    at Test.<anonymous> ( /webrtc/RTCError.html:38:3)
PassRTCError.code is 0
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /webrtc/RTCError.html:43:3)
PassRTCError.errorDetail is readonly.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     error.errorDetail = 'dtls-failure';   }")
    at Test.<anonymous> ( /webrtc/RTCError.html:48:3)
PassRTCErrorInit.errorDetail is the only required attribute
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     new RTCError({}, 'message');   }")
    at Test.<anonymous> ( /webrtc/RTCError.html:56:3)
PassRTCError.sdpLineNumber is null by default
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCError.html:71:5)
PassRTCError.sdpLineNumber is settable by constructor
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /webrtc/RTCError.html:77:5)
PassRTCError.sdpLineNumber is readonly
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {       error[attribute] = 42;     }")
    at Test.<anonymous> ( /webrtc/RTCError.html:82:5)
PassRTCError.sctpCauseCode is null by default
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCError.html:71:5)
PassRTCError.sctpCauseCode is settable by constructor
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /webrtc/RTCError.html:77:5)
PassRTCError.sctpCauseCode is readonly
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {       error[attribute] = 42;     }")
    at Test.<anonymous> ( /webrtc/RTCError.html:82:5)
PassRTCError.receivedAlert is null by default
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCError.html:71:5)
PassRTCError.receivedAlert is settable by constructor
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /webrtc/RTCError.html:77:5)
PassRTCError.receivedAlert is readonly
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {       error[attribute] = 42;     }")
    at Test.<anonymous> ( /webrtc/RTCError.html:82:5)
PassRTCError.sentAlert is null by default
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /webrtc/RTCError.html:71:5)
PassRTCError.sentAlert is settable by constructor
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /webrtc/RTCError.html:77:5)
PassRTCError.sentAlert is readonly
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {       error[attribute] = 42;     }")
    at Test.<anonymous> ( /webrtc/RTCError.html:82:5)
FailRTCError httpRequestStatusCode should not be supported.assert_false: Should not be supported on the prototype expected false got true
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/webrtc/RTCError.html:89:3)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/webrtc/RTCError.html:88:1
Asserts run
Fail
assert_false(true, "Should not be supported on the prototype")
    at Test.<anonymous> ( /webrtc/RTCError.html:89:3)