equal
deleted
inserted
replaced
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); |