unittests/tests/widget.js
branchpopcorn-port
changeset 114 eda061f1aa75
parent 74 d7a7d7216371
child 119 29d6d634cbdf
--- a/unittests/tests/widget.js	Fri Oct 21 14:05:59 2011 +0200
+++ b/unittests/tests/widget.js	Fri Oct 21 14:06:29 2011 +0200
@@ -10,8 +10,10 @@
   );
   
   test("test initialisation", function() {
-    var wid = new IriSP.Widget(this.Popcorn, {parent: "widget-div"}, this.ser);
-    deepEqual(wid._config, {parent: "widget-div"}, "Check if the parent div is set correctly");
+    var config = {divId: "mydiv"};
+    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");
     
   });