equal
deleted
inserted
replaced
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 }); |