Changeset 8265
- Timestamp:
- 04/24/07 05:04:21 (21 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/tests/_base/fx.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/_base/fx.html
r8263 r8265 63 63 runTest: function(t){ 64 64 var duration = 500; 65 var startHeight = dojo.style('foo', 'height'); 66 console.debug("Start height is "+startHeight); 65 var foo = dojo.byId("foo"); 66 var startHeight = dojo.marginBox(foo).h; 67 //console.debug("Start height is "+startHeight); 68 67 69 var anim = dojo.animateProperty({ 68 node: 'foo',70 node: foo, 69 71 properties: { height: { end: startHeight / 2 } }, 70 72 duration: duration … … 74 76 75 77 dojo.connect(anim, "onEnd", anim, function(){ 76 var height = dojo. style('foo', 'height');77 console.debug("End height is "+height);78 var height = dojo.marginBox(foo).h; 79 //console.debug("End height is "+height); 78 80 79 81 var elapsed = (new Date().valueOf()) - anim._startTime; 80 82 t.assertTrue(elapsed >= duration); 81 83 82 console.debug("dojo.style('foo', 'height'): "+height+"\nHeight Style Property: "+dojo.byId('foo').style['height']+"\nIntended Height: "+(startHeight/2));84 //console.debug("dojo.contentBox(foo).h): "+height+"\nIntended Height: "+(startHeight/2)); 83 85 84 86 t.is(height, startHeight / 2);