equal
deleted
inserted
replaced
25 equal(IriSP.jQuery("#" + lay._div).css("height"), lay._height + "px", "div height is set correctly"); |
25 equal(IriSP.jQuery("#" + lay._div).css("height"), lay._height + "px", "div height is set correctly"); |
26 }); |
26 }); |
27 |
27 |
28 test("test widget div creation", function() { |
28 test("test widget div creation", function() { |
29 var lay = new IriSP.LayoutManager({}); |
29 var lay = new IriSP.LayoutManager({}); |
30 var divId = lay.createDiv(); |
30 var ret = lay.createDiv(); |
|
31 var divId = ret[0]; |
|
32 var spacerId = ret[1]; |
31 |
33 |
32 equal(lay.selector.children("#" + divId).length, 1, "check that a subdiv is created"); |
34 equal(lay.selector.children("#" + divId).length, 1, "check that a subdiv container is created"); |
|
35 equal(lay.selector.children("#" + spacerId).length, 1, "check that a spacer subdiv is created"); |
33 |
36 |
34 }); |
37 }); |
35 |
38 |
36 }; |
39 }; |