unittests/tests/widget.js
branchpopcorn-port
changeset 170 5150ae56e0a6
parent 124 2758dfb208b2
child 428 9246dce433f8
equal deleted inserted replaced
169:427632a324d5 170:5150ae56e0a6
    15     deepEqual(wid._config, config, "Check if the parent div is set correctly");
    15     deepEqual(wid._config, config, "Check if the parent div is set correctly");
    16     ok(wid.selector, "Check if the jquery selector is set");
    16     ok(wid.selector, "Check if the jquery selector is set");
    17     
    17     
    18   });
    18   });
    19   
    19   
       
    20   test("test initialisation with more values", function() {
       
    21     var config = { container: "mydiv", widthmax: 640, heightmax: 480};
       
    22     var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
       
    23     deepEqual(wid._config, config, "Check if the parent div is set correctly");
       
    24     ok(wid.selector, "Check if the jquery selector is set");
       
    25     
       
    26   });
       
    27   
    20   
    28   
    21 };
    29 };