Changes between Initial Version and Version 2 of Ticket #5426


Ignore:
Timestamp:
Dec 19, 2007, 7:39:00 AM (14 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5426

    • Property Owner changed from anonymous to sjmiles
    • Property Reporter changed from guest to [email protected]
    • Property Component changed from General to Core
    • Property Summary changed from Mixin Sets Inherited Property to '' When Inheritied Class and Mixed In Class Share a Common Base Class to dojo.declare: Mixin Sets Inherited Property to '' When Inheritied Class and Mixed In Class Share a Common Base Class
  • Ticket #5426 – Description

    initial v2  
    22
    33This passes, but I'm expecting it to fail because isContainer should be true:
    4 
    5                                 doh.assertTrue(this.uiContainerSelectableMix.isContainer == "");
    6 
     4{{{
     5doh.assertTrue(this.uiContainerSelectableMix.isContainer == "");
     6}}}
    77 In the tests below I have defined two classes that share a common base class.  When I define a third class that inherits from UIContainer and mixes in UISelectable the UIContainer.isContainer property is set to "".  If I comment out the UISelectable mixin, then the UIContainer.isContainer property is true.  Note that it should be possible to duplicate the tests with any base class for UIContainer and UISelectable.
    88
     
    1010
    1111Here's the full test along with setup (Note that both UISelectable and UIContainer inherit from a common base class):
    12 
     12{{{
    1313                        name: UIContainerSelectableMix Test",
    1414
     
    4949
    5050                         }
    51                
     51}}}
    5252       
    5353 If I replace dojo4jsf.components.UIComponent with null when defining the UIContainer and UISelectable the test works as expected...with isContainer being true.
     
    5555 Also if I comment out the UISelectable mixin on the definition of "UIContainerSelectableMix" like this:
    5656
    57 
     57{{{
    5858                                dojo.declare(   "UIContainerSelectableMix",
    5959                                                                [UIContainer/*,
     
    6262                                       
    6363                                });
    64 
     64}}}
    6565Then this passes:
    66 
     66{{{
    6767doh.assertTrue(this.uiContainerSelectableMix.isContainer);
     68}}}
    6869
    6970