unittests/tests/widget.js
branchpopcorn-port
changeset 170 5150ae56e0a6
parent 124 2758dfb208b2
child 428 9246dce433f8
--- a/unittests/tests/widget.js	Fri Oct 28 17:28:15 2011 +0200
+++ b/unittests/tests/widget.js	Wed Nov 02 10:58:34 2011 +0100
@@ -17,5 +17,13 @@
     
   });
   
+  test("test initialisation with more values", function() {
+    var config = { container: "mydiv", widthmax: 640, heightmax: 480};
+    var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
+    deepEqual(wid._config, config, "Check if the parent div is set correctly");
+    ok(wid.selector, "Check if the jquery selector is set");
+    
+  });
+  
   
 };
\ No newline at end of file