unittests/tests/init.js
branchpopcorn-port
changeset 179 7b46fbf4cf6c
parent 171 158f0193ec54
child 287 5c7495102bd7
equal deleted inserted replaced
178:83241c5139a7 179:7b46fbf4cf6c
    84                 type:'dummy'}
    84                 type:'dummy'}
    85               };
    85               };
    86               
    86               
    87     var res = IriSP.instantiateWidget(pop, serialFactory, layoutManager, conf);    
    87     var res = IriSP.instantiateWidget(pop, serialFactory, layoutManager, conf);    
    88     ok(res instanceof IriSP.PlayerWidget, "the returned widget is of the correct instance");
    88     ok(res instanceof IriSP.PlayerWidget, "the returned widget is of the correct instance");
       
    89     equal(res._config.mode, "radio", "the parameters not interpreted by the config are copied into the object");
    89   });  
    90   });  
    90   
    91   
    91   test("test the instantiation of a single widget with one dependency", function() {
    92   test("test the instantiation of a single widget with one dependency", function() {
    92     var dt = new IriSP.DataLoader();
    93     var dt = new IriSP.DataLoader();
    93     var serialFactory = new IriSP.SerializerFactory(dt);
    94     var serialFactory = new IriSP.SerializerFactory(dt);