Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2848 closed defect (fixed)

M2: 09: animateHeight dojo.fx Unit Test fails on IE 6

Reported by: Jared Jurkiewicz Owned by: Bryan Forbes
Priority: high Milestone:
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

M2: 09: animateHeight dojo.fx Unit Test fails on IE 6

I ran the UT though IE 6 and get a failure in the animateHeight tests of IE 6, the report is:

GROUP "t" has 3 tests to run PASSED test: ../../dojo/tests/_base/fx.html::t::fadeOut PASSED test: ../../dojo/tests/_base/fx.html::t::fadeIn [object Error] ERROR IN: function(t){ var duration = 500; var foo = dojo.byId("foo"); var startHeight = dojo.marginBox(foo).h; console.debug("Start height is "+startHeight); var anim = dojo.animateProperty({ node: foo, properties: { height: { end: startHeight / 2 } }, duration: duration }); var d = new doh.Deferred(); dojo.connect(anim, "onEnd", anim, function(){ var height = dojo.marginBox(foo).h; console.debug("End height is "+height); var elapsed = (new Date().valueOf()) - anim._startTime; t.assertTrue(elapsed >= duration); console.debug("dojo.contentBox(foo).h): "+height+" Intended Height: "+(startHeight/2)); t.is(height, startHeight / 2); d.callback(true); }); anim.play(); return d; } FAILED test: ../../dojo/tests/_base/fx.html::t::animateHeight PASSED test: ../../dojo/tests/_base/fx.html

Change History (5)

comment:1 Changed 12 years ago by Jared Jurkiewicz

Milestone: 0.9M2
Version: 0.4.20.9

comment:2 Changed 12 years ago by sjmiles

(In [8305]) Help fx.html work in IE: ensure integer endHeight, set overflow: hidden to allow resizing test node. Refs #2848.

comment:3 Changed 12 years ago by sjmiles

Resolution: fixed
Status: newclosed

comment:4 Changed 12 years ago by sjmiles

(In [8309]) foo should be "foo", my bad. Refs #2848.

comment:5 Changed 12 years ago by (none)

Milestone: 0.9M2

Milestone 0.9M2 deleted

Note: See TracTickets for help on using tickets.