unittests/tests/layout.js
branchpopcorn-port
changeset 287 5c7495102bd7
parent 159 de92bfdcbe4c
child 288 25fe0c8831de
--- a/unittests/tests/layout.js	Mon Nov 21 10:51:42 2011 +0100
+++ b/unittests/tests/layout.js	Mon Nov 21 11:34:07 2011 +0100
@@ -27,9 +27,12 @@
   
   test("test widget div creation", function() {
     var lay = new IriSP.LayoutManager({});
-    var divId = lay.createDiv();
+    var ret = lay.createDiv(); 
+    var divId = ret[0];
+    var spacerId = ret[1];
     
-    equal(lay.selector.children("#" + divId).length, 1, "check that a subdiv is created");
+    equal(lay.selector.children("#" + divId).length, 1, "check that a subdiv container is created");
+    equal(lay.selector.children("#" + spacerId).length, 1, "check that a spacer subdiv is created");
     
   });