Pass | The eventInitDict argument is required | Asserts runPass | assert_equals(2, 2)
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:8:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type"); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:9:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type", null); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:12:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type", undefined); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:15:3) |
|
Pass | The eventInitDict's track member is required. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type", {}); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:21:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type", { track: null }); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:24:3) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { new MediaStreamTrackEvent("type", { track: undefined }); }")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:27:3) |
|
Pass | The MediaStreamTrackEvent instance's track attribute is set. | Asserts runPass | assert_true(true)
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:37:3) | Pass | assert_equals("type", "type")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:39:3) | Pass | assert_equals(object "[object MediaStreamTrack]", object "[object MediaStreamTrack]")
at Test.<anonymous> ( /mediacapture-streams/MediaStreamTrackEvent-constructor.https.html:40:3) |
|