Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassRTCDataChannelEvent constructor without a required argument.
Asserts run
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:11:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new RTCDataChannelEvent('type'); }")
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:12:5)
PassRTCDataChannelEvent constructor with channel passed as null.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new RTCDataChannelEvent('type', { channel: null }); }")
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:19:5)
PassRTCDataChannelEvent constructor with a channel passed as undefined.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { new RTCDataChannelEvent('type', { channel: undefined }); }")
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:26:5)
PassRTCDataChannelEvent constructor with full arguments.
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:38:5)
Pass
assert_equals(object "[object RTCDataChannel]", object "[object RTCDataChannel]")
    at Test.<anonymous> ( /webrtc/RTCDataChannelEvent-constructor.html:39:5)