This page contains a foundation of conformance tests that can be expanded to cover most things in the W3C specification of the Media Capture and Streams API.
VERSION: These tests are based on the W3C Editor's Draft of 07 May, 2014 (http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html)
STATUS: In its current state, it only performs simple checks on the various
attributes and methods of the objects exposed by the API. There's not much
functionality tested so far. The spec doesn't define if an attribute shall be
owned by the object itself (assert_own_propety
) or if it shall be
inherited (assert_inherits
). Since testharness.js doesn't offer
any generic function that covers both, the method for verification is
currently chosen according to the current Chrome implementation.
HOW TO RUN: For Chrome, do this:
--use-fake-ui-for-media-stream
in
Chrome)--use-fake-device-for-media-stream
in Chrome)--allow-file-access-from-files
in Chrome)For Firefox, set the media.navigator.permission.disabled property to true about:config. You must have a webcam and microphone available on the system.