diff -r 427632a324d5 -r 5150ae56e0a6 unittests/tests/widget.js --- 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