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 August 24th, 2013 (http://dev.w3.org/2011/webrtc/editor/archives/20130824/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.
PREFIXES: These tests currently utilizes the adapter.js
  script, which handle the prefixes used by different browsers.
HOW TO RUN: The easiest way is to tell your browser to:
--use-fake-ui-for-media-stream in
  Chrome)--use-fake-device-for-media-stream in Chrome)--allow-file-access-from-files in Chrome)