unittests/tests/layout.js
branchpopcorn-port
changeset 287 5c7495102bd7
parent 159 de92bfdcbe4c
child 288 25fe0c8831de
equal deleted inserted replaced
286:6252f951d11c 287:5c7495102bd7
    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 };