added a small test. popcorn-port
authorhamidouk
Thu, 03 Nov 2011 13:10:47 +0100
branchpopcorn-port
changeset 179 7b46fbf4cf6c
parent 178 83241c5139a7
child 180 aa622a872e0c
added a small test.
unittests/tests/init.js
--- a/unittests/tests/init.js	Thu Nov 03 13:10:31 2011 +0100
+++ b/unittests/tests/init.js	Thu Nov 03 13:10:47 2011 +0100
@@ -86,6 +86,7 @@
               
     var res = IriSP.instantiateWidget(pop, serialFactory, layoutManager, conf);    
     ok(res instanceof IriSP.PlayerWidget, "the returned widget is of the correct instance");
+    equal(res._config.mode, "radio", "the parameters not interpreted by the config are copied into the object");
   });  
   
   test("test the instantiation of a single widget with one dependency", function() {