Mock framework and simple testing infrastructure

@juberti @andresusanopinto @vrk 
Constraints are to be used for getUserMedia. Both they should be a part of
a test. Spec is still evolving. :-)
See this test rewrite:

https://github.com/kristijanburnik/webrtc/blob/f7ae3f011de0dff7a9c1e5080da48e00224a2169/samples/web/content/testrtc/js/conn.test.js

Although, it's not runnable at this point.


On Wed, Oct 1, 2014 at 4:58 PM, André Susano Pinto <notifications@github.com
> wrote:

> In samples/web/content/testrtc/js/webrtctest.js:
>
> > +// TODO: wrap all into a single object
> > +var g = {
> > +  suites:[],
> > +  init:function() {
> > +
> > +    var o = {
> > +      chain:[]
> > +    }
> > +
> > +    var t = {
> > +      testsuite:function(name,description){
> > +        o.chain.push(["testsuite",name,description])
> > +        return t;
> > +      },
> > +      constraints:function(c){
> > +        o.chain.push(["constraints",label]);
>
> what is this used for?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleChrome/webrtc/pull/111/files#r18283842>.
>



-- 

Regards,
Kristijan Burnik,
SWE Intern