Hi folks,

I'm currently working on *unit tests*, and I want to ensure that some
parameters are invalidated when resizing an instance (the tested instance).
Basically, in this instance, I compute some values based upon the instance's
bounds, and whenever they change, these values must be recomputed the next
time they're asked.

So, in a nutshell, *how can I simulate a resize* ? I've tried to set height,
width, min/max values too, but the resize listener is never called (so my
tests fails since nothing is ever invalidated). When I run the app, though,
the listener is properly called when resizing the widget, I mean the code
actually works, but I can't test that it does.

Thanks a lot, I hope my question is clear :-)

Samples :

Simulating function (which actually doesn't simulate anything) :



Test (which fails) :





--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Simulate-a-resize-in-unit-tests-tp7581093.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to