Pass | RTCError constructor with errorDetail and message | Asserts runPass | 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) |
|
Pass | RTCError constructor's message argument is optional | Asserts runPass | assert_equals("", "")
at Test.<anonymous> ( /webrtc/RTCError.html:18:3) |
|
Pass | RTCError constructor throws TypeError if arguments are missing | Asserts runPass | 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) |
|
Pass | RTCError constructor throws TypeError if the errorDetail is invalid | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new RTCError({errorDetail:'invalid-error-detail'}, 'message'); }")
at Test.<anonymous> ( /webrtc/RTCError.html:31:3) |
|
Pass | RTCError.name is 'OperationError' | Asserts runPass | assert_equals("OperationError", "OperationError")
at Test.<anonymous> ( /webrtc/RTCError.html:38:3) |
|
Pass | RTCError.code is 0 | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /webrtc/RTCError.html:43:3) |
|
Pass | RTCError.errorDetail is readonly. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { error.errorDetail = 'dtls-failure'; }")
at Test.<anonymous> ( /webrtc/RTCError.html:48:3) |
|
Pass | RTCErrorInit.errorDetail is the only required attribute | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new RTCError({}, 'message'); }")
at Test.<anonymous> ( /webrtc/RTCError.html:56:3) |
|
Pass | RTCError.sdpLineNumber is null by default | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /webrtc/RTCError.html:71:5) |
|
Pass | RTCError.sdpLineNumber is settable by constructor | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /webrtc/RTCError.html:77:5) |
|
Pass | RTCError.sdpLineNumber is readonly | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { error[attribute] = 42; }")
at Test.<anonymous> ( /webrtc/RTCError.html:82:5) |
|
Pass | RTCError.sctpCauseCode is null by default | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /webrtc/RTCError.html:71:5) |
|
Pass | RTCError.sctpCauseCode is settable by constructor | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /webrtc/RTCError.html:77:5) |
|
Pass | RTCError.sctpCauseCode is readonly | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { error[attribute] = 42; }")
at Test.<anonymous> ( /webrtc/RTCError.html:82:5) |
|
Pass | RTCError.receivedAlert is null by default | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /webrtc/RTCError.html:71:5) |
|
Pass | RTCError.receivedAlert is settable by constructor | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /webrtc/RTCError.html:77:5) |
|
Pass | RTCError.receivedAlert is readonly | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { error[attribute] = 42; }")
at Test.<anonymous> ( /webrtc/RTCError.html:82:5) |
|
Pass | RTCError.sentAlert is null by default | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /webrtc/RTCError.html:71:5) |
|
Pass | RTCError.sentAlert is settable by constructor | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /webrtc/RTCError.html:77:5) |
|
Pass | RTCError.sentAlert is readonly | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { error[attribute] = 42; }")
at Test.<anonymous> ( /webrtc/RTCError.html:82:5) |
|
Fail | RTCError 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 runFail | assert_false(true, "Should not be supported on the prototype")
at Test.<anonymous> ( /webrtc/RTCError.html:89:3) |
|