blob: 6b48a1e0062e66fa2b175227816ec49f5d347f55 [file] [log] [blame]
Test enabling/disabling mock media capture devices
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
*** Mock capture devices should be enabled by default
PASS mediaStream is an instance of Object
PASS mediaStream.getTracks().length is 2
PASS window.internals.pageMediaState().includes('HasActiveAudioCaptureDevice') && window.internals.pageMediaState().includes('HasActiveVideoCaptureDevice') became true
*** Muting capture devices
EVENT: mute
PASS muteChangedEvent.target.muted is true
EVENT: mute
PASS muteChangedEvent.target.muted is true
PASS window.internals.pageMediaState().includes(HasMutedAudioCaptureDevice) became true
PASS window.internals.pageMediaState().includes(HasMutedVideoCaptureDevice) became true
PASS window.internals.pageMediaState().includes(HasActiveAudioCaptureDevice) became false
PASS window.internals.pageMediaState().includes(HasActiveVideoCaptureDevice) became false
*** Unmuting capture devices
EVENT: unmute
PASS muteChangedEvent.target.muted is false
EVENT: unmute
PASS muteChangedEvent.target.muted is false
PASS window.internals.pageMediaState().includes(HasActiveAudioCaptureDevice) became true
PASS window.internals.pageMediaState().includes(HasActiveVideoCaptureDevice) became true
PASS window.internals.pageMediaState().includes(HasMutedAudioCaptureDevice) became false
PASS window.internals.pageMediaState().includes(HasMutedVideoCaptureDevice) became false
PASS successfullyParsed is true
TEST COMPLETE