Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassMediaRecorder will stop recording when any of track is added and error event will be fired
Asserts run
Pass
assert_equals("recording", "recording", "MediaRecorder has been started successfully")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:24:9)
Pass
assert_true(true, "the type of event should be ErrorEvent")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:17:13)
Pass
assert_equals("InvalidModificationError", "InvalidModificationError", "the type of error should be InvalidModificationError when track has been added or removed")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:18:13)
Pass
assert_true(true, "isTrusted should be true when the event is created by C++")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:19:13)
Pass
assert_equals("inactive", "inactive", "MediaRecorder has been stopped after adding a track to stream")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:20:13)
PassMediaRecorder will stop recording when any of track is removed and error event will be fired
Asserts run
Pass
assert_equals("recording", "recording", "MediaRecorder has been started successfully")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:43:9)
Pass
assert_true(true, "the type of event should be ErrorEvent")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:36:13)
Pass
assert_equals("InvalidModificationError", "InvalidModificationError", "the type of error should be InvalidModificationError when track has been added or removed")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:37:13)
Pass
assert_true(true, "isTrusted should be true when the event is created by C++")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:38:13)
Pass
assert_equals("inactive", "inactive", "MediaRecorder has been stopped after removing a track from stream")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:39:13)
PassMediaRecorder cannot start recording when MediaRecorder' state is not inactive and an InvalidStateError should be thrown
Asserts run
Pass
assert_equals("recording", "recording", "MediaRecorder has been started successfully")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:55:9)
Pass
assert_throws_dom("InvalidStateError", function "function() {             recorder.start();         }")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:56:9)
PassMediaRecorder throws NotSupportedError when given both videoKeyFrameIntervalDuration and videoKeyFrameIntervalCount
Asserts run
Pass
assert_throws_dom("NotSupportedError", function "function () {             new MediaRecorder(video, {                 videoKeyFrameIntervalDuration: 10,                 videoKeyFrameIntervalCount: 10,             });         }")
    at Test.<anonymous> ( /mediacapture-record/MediaRecorder-error.html:62:9)