Changeset 8305
- Timestamp:
- 04/26/07 11:02:55 (21 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/tests/_base/fx.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/_base/fx.html
r8265 r8305 63 63 runTest: function(t){ 64 64 var duration = 500; 65 var foo = dojo.byId("foo"); 66 var startHeight = dojo.marginBox(foo).h; 67 //console.debug("Start height is "+startHeight); 65 var startHeight = dojo.marginBox("foo").h; 66 var endHeight = Math.round(startHeight / 2); 68 67 69 68 var anim = dojo.animateProperty({ 70 69 node: foo, 71 properties: { height: { end: startHeight / 2} },70 properties: { height: { end: endHeight } }, 72 71 duration: duration 73 72 }); … … 76 75 77 76 dojo.connect(anim, "onEnd", anim, function(){ 78 var height = dojo.marginBox(foo).h;79 //console.debug("End height is "+height);80 81 77 var elapsed = (new Date().valueOf()) - anim._startTime; 82 78 t.assertTrue(elapsed >= duration); 83 84 //console.debug("dojo.contentBox(foo).h): "+height+"\nIntended Height: "+(startHeight/2)); 85 86 t.is(height, startHeight / 2); 79 var height = dojo.marginBox("foo").h; 80 t.is(height, endHeight); 87 81 d.callback(true); 88 82 }); 83 89 84 anim.play(); 90 85 return d; … … 122 117 -khtml-box-sizing: border-box; 123 118 box-sizing: border-box; 119 overflow: hidden; 124 120 /* position: absolute; */ 125 121 }