1. #1
    Ext User
    Join Date
    Jul 2010
    Location
    Germany
    Posts
    11
    Vote Rating
    0
    KaiWeing is on a distinguished road

      0  

    Default Howto unit test widgets?

    Howto unit test widgets?


    Hello,

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

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Code:
    RootPanel.get().add(mywidget);

  3. #3
    Ext User
    Join Date
    Jul 2010
    Location
    Germany
    Posts
    11
    Vote Rating
    0
    KaiWeing is on a distinguished road

      0  

    Default


    That's it, so easy...

    Thank you!

Similar Threads

  1. Extjs 3.2.X Unit Testing and Ext.test.session implementation
    By yhwh in forum Community Discussion
    Replies: 43
    Last Post: 30 Aug 2010, 4:37 AM
  2. HowTo: ExtJs website accessible iPhone? Howto fixed ScreenSize?
    By Arno.Nyhm in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 Feb 2010, 8:19 AM
  3. JS Unit Test Panel
    By Ronaldo in forum Ext 2.x: User Extensions and Plugins
    Replies: 9
    Last Post: 20 Feb 2009, 9:32 AM
  4. v0.1 Qo Widgets : Widgets Manager for qWikiOffice
    By Ytorres in forum Community Discussion
    Replies: 12
    Last Post: 19 Oct 2008, 11:50 AM
  5. How to unit test Ext.Ajax (no server required)
    By danh2000 in forum Community Discussion
    Replies: 0
    Last Post: 8 Nov 2007, 2:38 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi