Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassThe eventInitDict argument is required
Asserts run
Pass
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)
PassThe eventInitDict's track member is required.
Asserts run
Pass
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)
PassThe MediaStreamTrackEvent instance's track attribute is set.
Asserts run
Pass
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)