9 Aug 2010 8:24 AM #1
Howto unit test widgets?
I built a composite field based on a MultiField and want to write a unit test for it.
I am using GWTTestCase, so the JS environment is available.
However, many interactions (like setting rawValue) with the field have not effect, since it's base class attribute 'rendered' is false. According to the javadoc, this is because it is never rendered. Now I need a tip how to initiate rendering in a test case.
Is there a best practice to set up a rendered component in a unit test?
Thanks in advance!
9 Aug 2010 8:25 AM #2Code:
9 Aug 2010 8:33 AM #3
That's it, so easy...
By yhwh in forum Community DiscussionReplies: 43Last Post: 30 Aug 2010, 4:37 AM
By Arno.Nyhm in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 27 Feb 2010, 8:19 AM
By Ronaldo in forum Ext 2.x: User Extensions and PluginsReplies: 9Last Post: 20 Feb 2009, 9:32 AM
By Ytorres in forum Community DiscussionReplies: 12Last Post: 19 Oct 2008, 11:50 AM
By danh2000 in forum Community DiscussionReplies: 0Last Post: 8 Nov 2007, 2:38 AM