unittests/tests/widget.js
branchpopcorn-port
changeset 119 29d6d634cbdf
parent 114 eda061f1aa75
child 124 2758dfb208b2
equal deleted inserted replaced
118:695e1086ddd2 119:29d6d634cbdf
     8     this.ser = new IriSP.JSONSerializer(this.dt, "/url");
     8     this.ser = new IriSP.JSONSerializer(this.dt, "/url");
     9   } }
     9   } }
    10   );
    10   );
    11   
    11   
    12   test("test initialisation", function() {
    12   test("test initialisation", function() {
    13     var config = {divId: "mydiv"};
    13     var config = { gui : { container: "mydiv"} };
    14     var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
    14     var wid = new IriSP.Widget(this.Popcorn, config, this.ser);
    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   });