15 equal(IriSP.jQuery("#" + lay._div).css("width"), lay._width + "px", "div width is set correctly"); |
15 equal(IriSP.jQuery("#" + lay._div).css("width"), lay._width + "px", "div width is set correctly"); |
16 equal(IriSP.jQuery("#" + lay._div).css("height"), lay._height + "px", "div height is set correctly"); |
16 equal(IriSP.jQuery("#" + lay._div).css("height"), lay._height + "px", "div height is set correctly"); |
17 }); |
17 }); |
18 |
18 |
19 test("test custom init of layout manager", function() { |
19 test("test custom init of layout manager", function() { |
20 var lay = new IriSP.LayoutManager({divId: "myDiv", width: 327, height: 542}); |
20 var lay = new IriSP.LayoutManager({container: "myDiv", width: 327, height: 542}); |
21 equal(lay._div, "myDiv", "the default div is set correctly"); |
21 equal(lay._div, "myDiv", "the default div is set correctly"); |
22 equal(lay._width, 327, "the default width is set correctly"); |
22 equal(lay._width, 327, "the default width is set correctly"); |
23 equal(lay._height, 542, "the default height is set correctly"); |
23 equal(lay._height, 542, "the default height is set correctly"); |
24 |
24 |
25 equal(IriSP.jQuery("#" + lay._div).css("width"), lay._width + "px", "div width is set correctly"); |
25 equal(IriSP.jQuery("#" + lay._div).css("width"), lay._width + "px", "div width is set correctly"); |