Yes, of course :

"test : __resize function is called": function() {
     var widget = this.__widget;
     
     // This is called when running the app, but it won't here in unit tests
     var spy = this.spy(widget, "__onResize");
     
     this.__simulateSizeChange(widget, 125, 458);
     
     var that = this;
     
     this.wait(5000, function() {
         that.assertTrue(spy.calledOnce);
     });
}




On 08/24/2012 04:02 PM, Alexander Steitz wrote:
> Can you post a small sample of your unit test?
>
> Regards,
>    Alex
>
> -----Original Message-----
> From: loremipsum [mailto:[email protected]]
> Sent: Friday, August 24, 2012 12:56 PM
> To: [email protected]
> Subject: Re: [qooxdoo-devel] Simulate a resize in unit tests
>
> Thanks for your answer,
>
> no I didn't know about the flush() thing, but I tried and i still doesn't 
> work...
>
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Simulate-a-resize-in-unit-tests-tp7581093p7581095.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
>
> ------------------------------------------------------------------------------
> 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
>
>


------------------------------------------------------------------------------
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