You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/10/01 01:11:09 UTC
svn commit: r700627 [1/9] - in /myfaces/tomahawk/trunk:
core/src/main/java/org/apache/myfaces/custom/calendar/
core/src/main/java/org/apache/myfaces/custom/inputTextHelp/
core/src/test/java/org/apache/myfaces/custom/calendar/
core/src/test/java/org/apa...
Author: lu4242
Date: Tue Sep 30 16:11:04 2008
New Revision: 700627
URL: http://svn.apache.org/viewvc?rev=700627&view=rev
Log:
TOMAHAWK-1183 onFocus and some html properties rendered twice or not rendered (Thanks to Paul Rivera)
Added:
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/swapimage/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/swapimage/HtmlSwapImageRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tabbedpane/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/renderkit/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeCheckboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeImageCommandLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlButtonRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlCheckboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlGridRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlImageRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlListboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMenuRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMessageRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMessagesRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlSecretRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTextRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTextareaRendererTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/HtmlCheckAttributesUtil.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/HtmlRenderedAttr.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/MockTestViewHandler.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/
myfaces/tomahawk/trunk/core12/src/test/java/org/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/calendar/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/datalist/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/date/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/div/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/fileupload/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/htmlTag/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/htmlTag/HtmlTagRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/inputTextHelp/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/layout/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/navigation/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/newspaper/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/picklist/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneCountry/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneLanguage/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneRow/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/swapimage/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/swapimage/HtmlSwapImageRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tabbedpane/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/renderkit/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeCheckboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeImageCommandLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlButtonRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlCheckboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlGridRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlImageRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlListboxRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMenuRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMessageRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlMessagesRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlSecretRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTextRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlTextareaRendererTest.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/AbstractTomahawkViewControllerTestCase.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/utils/
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/utils/HtmlCheckAttributesUtil.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/utils/HtmlRenderedAttr.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/utils/MockTestViewHandler.java (with props)
myfaces/tomahawk/trunk/core12/src/test/java/org/apache/myfaces/test/utils/TestUtils.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/accordion/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/accordion/HtmlAccordionPanelRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/ajaxchildcombobox/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/ajaxchildcombobox/HtmlAjaxChildComboBoxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/autoupdatedatatable/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/autoupdatedatatable/AutoUpdateDataTableRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/form/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/form/HtmlFormRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/graphicimagedynamic/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/graphicimagedynamic/GraphicImageDynamicRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlCommandButtonAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlInputTextAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlMessageRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectBooleanCheckboxAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectManyCheckboxAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectOneRadioAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/OutputLinkDynamicRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/TestResourceRenderer.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/passwordStrength/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/passwordStrength/PasswordStrengthRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/ppr/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/roundeddiv/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/roundeddiv/HtmlRoundedDivRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/suggest/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/suggest/InputSuggestRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/suggestajax/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/suggestajax/SuggestAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/toggle/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/toggle/ToggleGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/toggle/ToggleLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/custom/toggle/TogglePanelRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/renderkit/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/renderkit/html/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/renderkit/html/ext/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlButtonExRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlFormRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/AbstractTomahawkViewControllerTestCase.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/HtmlCheckAttributesUtil.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/HtmlRenderedAttr.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/MockTestExternalContext.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/MockTestViewHandler.java (with props)
myfaces/tomahawk/trunk/sandbox/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/accordion/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/accordion/HtmlAccordionPanelRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/ajaxchildcombobox/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/ajaxchildcombobox/HtmlAjaxChildComboBoxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/autoupdatedatatable/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/autoupdatedatatable/AutoUpdateDataTableRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/form/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/form/HtmlFormRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/graphicimagedynamic/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/graphicimagedynamic/GraphicImageDynamicRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlCommandButtonAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlInputTextAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlMessageRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectBooleanCheckboxAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectManyCheckboxAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/inputAjax/HtmlSelectOneRadioAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/OutputLinkDynamicRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/outputlinkdynamic/TestResourceRenderer.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/passwordStrength/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/passwordStrength/PasswordStrengthRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/ppr/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/roundeddiv/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/roundeddiv/HtmlRoundedDivRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/suggest/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/suggest/InputSuggestRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/suggestajax/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/suggestajax/SuggestAjaxRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/toggle/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/toggle/ToggleGroupRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/toggle/ToggleLinkRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/custom/toggle/TogglePanelRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/renderkit/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/renderkit/html/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlButtonExRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/renderkit/html/ext/HtmlFormRendererTest.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/AbstractTomahawkViewControllerTestCase.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/HtmlCheckAttributesUtil.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/HtmlRenderedAttr.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/MockTestExternalContext.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/MockTestViewHandler.java (with props)
myfaces/tomahawk/trunk/sandbox/core12/src/test/java/org/apache/myfaces/test/utils/TestUtils.java (with props)
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/test/utils/TestUtils.java
myfaces/tomahawk/trunk/sandbox/core/pom.xml
myfaces/tomahawk/trunk/sandbox/core12/pom.xml
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java?rev=700627&r1=700626&r2=700627&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java Tue Sep 30 16:11:04 2008
@@ -290,6 +290,7 @@
writer.startElement(HTML.TABLE_ELEM, inputCalendar);
HtmlRendererUtils.renderHTMLAttributes(writer, inputCalendar, HTML.UNIVERSAL_ATTRIBUTES);
HtmlRendererUtils.renderHTMLAttributes(writer, inputCalendar, HTML.EVENT_HANDLER_ATTRIBUTES);
+ HtmlRendererUtils.renderHTMLAttributes(writer, inputCalendar, HTML.COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE);
writer.flush();
HtmlRendererUtils.writePrettyLineSeparator(facesContext);
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java?rev=700627&r1=700626&r2=700627&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java Tue Sep 30 16:11:04 2008
@@ -111,51 +111,56 @@
FacesContext facesContext)
throws IOException
{
- if(!(component instanceof HtmlInputTextHelp))
+ if(!(component instanceof HtmlInputTextHelp) || getHelpText(component) == null || ("").equals(getHelpText(component).trim()))
{
HtmlRendererUtils.renderHTMLAttributes(writer, component, HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED);
}
else
{
String id = component.getClientId(facesContext);
- if(isSelectText(component))
- {
- HtmlRendererUtils.renderHTMLAttributes(writer, component,
- HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK);
- writer.writeAttribute(HTML.ONFOCUS_ATTR,
- HtmlInputTextHelp.JS_FUNCTION_SELECT_TEXT + "('" +
- getHelpText(component) + "', '" + id +"')", null);
- writer.writeAttribute(HTML.ONCLICK_ATTR,
- HtmlInputTextHelp.JS_FUNCTION_SELECT_TEXT + "('" +
- getHelpText(component) + "', '" + id +"')", null);
-
- }
- else
- {
- if(getHelpText(component) != null)
- {
- HtmlRendererUtils.renderHTMLAttributes(writer, component,
- HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK);
- writer.writeAttribute(HTML.ONFOCUS_ATTR,
- HtmlInputTextHelp.JS_FUNCTION_RESET_HELP + "('" +
- getHelpText(component) + "', '" + id +"')", null);
- writer.writeAttribute(HTML.ONCLICK_ATTR,
- HtmlInputTextHelp.JS_FUNCTION_RESET_HELP + "('" +
- getHelpText(component) + "', '" + id +"')", null);
- }
- else
- {
- HtmlRendererUtils.renderHTMLAttributes(writer,
- component, HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED);
- }
- }
+ HtmlInputTextHelp textHelp = (HtmlInputTextHelp)component;
+
+ HtmlRendererUtils.renderHTMLAttributes(writer, component,
+ HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK);
+ writer.writeAttribute(HTML.ONFOCUS_ATTR,
+ buildJavascriptFunction(component, id, textHelp.getOnfocus()), null);
+ writer.writeAttribute(HTML.ONCLICK_ATTR,
+ buildJavascriptFunction(component, id, textHelp.getOnclick()), null);
}
- if (isDisabled(facesContext, component))
+ if (isDisabled(facesContext, component))
{
writer.writeAttribute(HTML.DISABLED_ATTR, Boolean.TRUE, null);
}
}
+
+ private String buildJavascriptFunction(UIComponent component, String id, String componentScript)
+ {
+ StringBuffer jsFunction = new StringBuffer();
+ if(isSelectText(component))
+ {
+ jsFunction.append(HtmlInputTextHelp.JS_FUNCTION_SELECT_TEXT);
+ jsFunction.append("('");
+ jsFunction.append( getHelpText(component)).append("', '");
+ jsFunction.append( id);
+ jsFunction.append("')");
+ }
+ else
+ {
+ jsFunction.append(HtmlInputTextHelp.JS_FUNCTION_RESET_HELP );
+ jsFunction.append("('");
+ jsFunction.append( getHelpText(component)).append("', '");
+ jsFunction.append( id);
+ jsFunction.append("')");
+ }
+
+ if(componentScript != null && !("").equals(componentScript.trim())) {
+ jsFunction.append(";");
+ jsFunction.append(componentScript);
+ }
+
+ return jsFunction.toString();
+ }
public void decode(FacesContext facesContext, UIComponent component)
{
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.calendar;
+
+import java.io.IOException;
+
+import javax.faces.FacesException;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlCalendarRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlInputCalendar inputCalendar;
+
+ public HtmlCalendarRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlCalendarRendererTest.class);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ inputCalendar = new HtmlInputCalendar();
+ facesContext.getApplication().addComponent("org.apache.myfaces.HtmlInputTextHelp", "org.apache.myfaces.custom.inputTextHelp.HtmlInputTextHelp");
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ inputCalendar = null;
+ }
+
+ public void testRenderedAttributes() throws IOException {
+ System.out.println("Testing rendered attributes");
+ inputCalendar.setOnfocus("onfocusTest()");
+ inputCalendar.setOnmouseover("onMouseOverTest()");
+ inputCalendar.setRenderAsPopup(true);
+
+ try {
+ inputCalendar.encodeEnd(facesContext);
+ } catch(FacesException fe) {
+ fe.printStackTrace();
+ }
+ facesContext.renderResponse();
+ System.out.println("---------------------------------------");
+ MockResponseWriter writer = (MockResponseWriter) facesContext.getResponseWriter();
+ System.out.println(writer.getWriter().toString());
+ System.out.println("\n---------------------------------------");
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicAttrs();
+
+ inputCalendar.setRenderAsPopup(true);
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ inputCalendar, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/calendar/HtmlCalendarRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.datalist;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlListRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlDataList dataList;
+
+ public HtmlListRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return new TestSuite(HtmlListRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ dataList = new HtmlDataList();
+ facesContext.getApplication().addComponent("org.apache.myfaces.HtmlDataList", "org.apache.myfaces.custom.datalist.HtmlDataList");
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ dataList = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicReadOnlyAttrs();
+
+ dataList.setLayout("simple");
+
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ dataList, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTruNotRendered() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateAttrsNotRenderedForReadOnly();
+
+ dataList.setLayout("simple");
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ dataList, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/datalist/HtmlListRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java?rev=700627&r1=700626&r2=700627&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java (original)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/date/HtmlDateRendererTest.java Tue Sep 30 16:11:04 2008
@@ -32,21 +32,30 @@
import javax.faces.context.FacesContext;
import javax.faces.render.RenderKitFactory;
-import junit.framework.TestCase;
+import junit.framework.Test;
+import junit.framework.TestSuite;
import org.apache.myfaces.application.ApplicationFactoryImpl;
import org.apache.myfaces.custom.date.AbstractHtmlInputDate.UserData;
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
import org.easymock.MockControl;
import org.easymock.classextension.MockClassControl;
-public class HtmlDateRendererTest extends TestCase {
- public static void main(String[] args) {
- junit.textui.TestRunner.run(HtmlDateRendererTest.class);
- }
-
+public class HtmlDateRendererTest extends AbstractTomahawkViewControllerTestCase {
+// public static void main(String[] args) {
+// junit.textui.TestRunner.run(HtmlDateRendererTest.class);
+// }
+
public HtmlDateRendererTest(String name) {
super(name);
}
+
+ public static Test suite() {
+ return new TestSuite(HtmlDateRendererTest.class);
+ }
protected void setUp() throws Exception {
super.setUp();
@@ -252,4 +261,36 @@
return facesContext;
}
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlInputDate inputDate = new HtmlInputDate();
+
+ HtmlRenderedAttr[] attrs = {
+ //_UniversalProperties
+ new HtmlRenderedAttr("dir", 3),
+ new HtmlRenderedAttr("lang", 3),
+ new HtmlRenderedAttr("title", 3),
+ //_EventProperties
+ new HtmlRenderedAttr("ondblclick", 3),
+ new HtmlRenderedAttr("onkeydown", 3),
+ new HtmlRenderedAttr("onkeypress", 3),
+ new HtmlRenderedAttr("onkeyup", 3),
+ new HtmlRenderedAttr("onmousedown", 3),
+ new HtmlRenderedAttr("onmousemove", 3),
+ new HtmlRenderedAttr("onmouseout", 3),
+ new HtmlRenderedAttr("onmouseover", 3),
+ new HtmlRenderedAttr("onmouseup", 3),
+ //_StyleProperties
+ new HtmlRenderedAttr("style", 3),
+ new HtmlRenderedAttr("styleClass", "styleClass", "class=\"styleClass\"", 3),
+ };
+
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ inputDate, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
}
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.div;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class DivRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private Div div;
+
+ public DivRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(DivRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ div = new Div();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ div = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicReadOnlyAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ div, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTruNotRendered() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateAttrsNotRenderedForReadOnly();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ div, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/div/DivRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.fileupload;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlFileUploadRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlInputFileUpload fileUpload;
+
+ public HtmlFileUploadRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return new TestSuite(HtmlFileUploadRendererTest.class);
+ }
+
+
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ fileUpload = new HtmlInputFileUpload();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ fileUpload = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ fileUpload, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/fileupload/HtmlFileUploadRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.htmltag;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.custom.htmlTag.HtmlTag;
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlTagRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlTag tag;
+
+ public HtmlTagRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return new TestSuite(HtmlTagRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ tag = new HtmlTag();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ tag = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = {
+ //_StyleProperties
+ new HtmlRenderedAttr("style"),
+ new HtmlRenderedAttr("styleClass", "styleClass", "class=\"styleClass\""),
+ };
+
+ tag.setValue("div");
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ tag, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/htmltag/HtmlTagRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.inputTextHelp;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlTextHelpRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private MockResponseWriter writer;
+ private HtmlInputTextHelp inputHelp;
+
+ public HtmlTextHelpRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlTextHelpRendererTest.class);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ writer = (MockResponseWriter)facesContext.getResponseWriter();
+ inputHelp = new HtmlInputTextHelp();
+ }
+
+ public void tearDown() {
+ writer = null;
+ inputHelp = null;
+ }
+
+ public void testSelectTextHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = {
+ //_AccesskeyProperty
+ new HtmlRenderedAttr("accesskey"),
+ //_UniversalProperties
+ new HtmlRenderedAttr("dir"),
+ new HtmlRenderedAttr("lang"),
+ new HtmlRenderedAttr("title"),
+ //_FocusBlurProperties
+ new HtmlRenderedAttr("onfocus", "onfocus", "onfocus=\""),
+ new HtmlRenderedAttr("onblur"),
+ //_ChangeSelectProperties
+ new HtmlRenderedAttr("onchange"),
+ new HtmlRenderedAttr("onselect"),
+ //_EventProperties
+ new HtmlRenderedAttr("onclick", "onclick", "onclick=\""),
+ new HtmlRenderedAttr("ondblclick"),
+ new HtmlRenderedAttr("onkeydown"),
+ new HtmlRenderedAttr("onkeypress"),
+ new HtmlRenderedAttr("onkeyup"),
+ new HtmlRenderedAttr("onmousedown"),
+ new HtmlRenderedAttr("onmousemove"),
+ new HtmlRenderedAttr("onmouseout"),
+ new HtmlRenderedAttr("onmouseover"),
+ new HtmlRenderedAttr("onmouseup"),
+ //_StyleProperties
+ new HtmlRenderedAttr("style"),
+ new HtmlRenderedAttr("styleClass", "styleClass", "class=\"styleClass\""),
+ //_TabindexProperty
+ new HtmlRenderedAttr("tabindex")
+ };
+ inputHelp.setSelectText(true);
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ inputHelp, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = {
+ //_AccesskeyProperty
+ new HtmlRenderedAttr("accesskey"),
+ //_UniversalProperties
+ new HtmlRenderedAttr("dir"),
+ new HtmlRenderedAttr("lang"),
+ new HtmlRenderedAttr("title"),
+ //_FocusBlurProperties
+ new HtmlRenderedAttr("onfocus", "onfocus", "onfocus=\""),
+ new HtmlRenderedAttr("onblur"),
+ //_ChangeSelectProperties
+ new HtmlRenderedAttr("onchange"),
+ new HtmlRenderedAttr("onselect"),
+ //_EventProperties
+ new HtmlRenderedAttr("onclick", "onclick", "onclick=\""),
+ new HtmlRenderedAttr("ondblclick"),
+ new HtmlRenderedAttr("onkeydown"),
+ new HtmlRenderedAttr("onkeypress"),
+ new HtmlRenderedAttr("onkeyup"),
+ new HtmlRenderedAttr("onmousedown"),
+ new HtmlRenderedAttr("onmousemove"),
+ new HtmlRenderedAttr("onmouseout"),
+ new HtmlRenderedAttr("onmouseover"),
+ new HtmlRenderedAttr("onmouseup"),
+ //_StyleProperties
+ new HtmlRenderedAttr("style"),
+ new HtmlRenderedAttr("styleClass", "styleClass", "class=\"styleClass\""),
+ //_TabindexProperty
+ new HtmlRenderedAttr("tabindex")
+ };
+
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ inputHelp, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.layout;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlLayoutRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlPanelLayout layout;
+
+ public HtmlLayoutRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlLayoutRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ layout = new HtmlPanelLayout();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ layout = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicReadOnlyAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ layout, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTruNotRendered() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateAttrsNotRenderedForReadOnly();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ layout, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/layout/HtmlLayoutRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.navigation;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.custom.navmenu.UINavigationMenuItem;
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlNavigationRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlPanelNavigation navigation;
+
+
+ public HtmlNavigationRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlNavigationRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ navigation = new HtmlPanelNavigation();
+ UINavigationMenuItem menuItem = new UINavigationMenuItem();
+ navigation.getChildren().add(menuItem);
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ navigation = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicReadOnlyAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ navigation, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTruNotRendered() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateAttrsNotRenderedForReadOnly();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ navigation, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/navigation/HtmlNavigationRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.newspaper;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlNewspaperTableRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlNewspaperTable newspaper;
+
+ public HtmlNewspaperTableRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlNewspaperTableRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ newspaper = new HtmlNewspaperTable();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ newspaper = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicReadOnlyAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ newspaper, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+
+ public void testHtmlPropertyPassTruNotRendered() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateAttrsNotRenderedForReadOnly();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ newspaper, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/newspaper/HtmlNewspaperTableRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,109 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.picklist;
+
+import javax.faces.component.UISelectItem;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class HtmlPicklistRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private HtmlSelectManyPicklist picklist;
+
+ public HtmlPicklistRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(HtmlPicklistRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ picklist = new HtmlSelectManyPicklist();
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ picklist = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = {
+ //_AccesskeyProperty
+ new HtmlRenderedAttr("accesskey", 2),
+ //_UniversalProperties
+ new HtmlRenderedAttr("dir", 2),
+ new HtmlRenderedAttr("lang", 2),
+ new HtmlRenderedAttr("title", 2),
+ //_FocusBlurProperties
+ new HtmlRenderedAttr("onfocus", 2),
+ new HtmlRenderedAttr("onblur", 2),
+ //_ChangeSelectProperties
+ new HtmlRenderedAttr("onchange", 2),
+ new HtmlRenderedAttr("onselect", 2),
+ //_EventProperties
+ new HtmlRenderedAttr("onclick", 2),
+ new HtmlRenderedAttr("ondblclick", 2),
+ new HtmlRenderedAttr("onkeydown", 2),
+ new HtmlRenderedAttr("onkeypress", 2),
+ new HtmlRenderedAttr("onkeyup", 2),
+ new HtmlRenderedAttr("onmousedown", 2),
+ new HtmlRenderedAttr("onmousemove", 2),
+ new HtmlRenderedAttr("onmouseout", 2),
+ new HtmlRenderedAttr("onmouseover", 2),
+ new HtmlRenderedAttr("onmouseup", 2),
+ //_StyleProperties
+ new HtmlRenderedAttr("style", 2),
+ new HtmlRenderedAttr("styleClass", "styleClass", "class=\"styleClass\"", 2),
+ //_TabindexProperty
+ new HtmlRenderedAttr("tabindex", 2)
+ };
+
+ UISelectItem item = new UISelectItem();
+ item.setItemLabel("mars");
+ item.setItemValue("mars");
+ picklist.getChildren().add(item);
+ picklist.setAddButtonStyle("btnStyle");
+ picklist.setAddButtonStyleClass("btnStyleClass");
+ picklist.setAddAllButtonStyle("btnStyle");
+ picklist.setAddAllButtonStyleClass("btnStyleClass");
+ picklist.setRemoveButtonStyle("btnStyle");
+ picklist.setRemoveButtonStyleClass("btnStyleClass");
+ picklist.setRemoveAllButtonStyle("btnStyle");
+ picklist.setRemoveAllButtonStyleClass("btnStyleClass");
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ picklist, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/picklist/HtmlPicklistRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.selectOneCountry;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class SelectOneCountryRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private SelectOneCountry selectCountry;
+
+ public SelectOneCountryRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(SelectOneCountryRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ selectCountry = new SelectOneCountry();
+ facesContext.getApplication().addComponent("org.apache.myfaces.CAPTCHA", "org.apache.myfaces.custom.captcha.CAPTCHAComponent");
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ selectCountry = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ selectCountry, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneCountry/SelectOneCountryRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.selectOneLanguage;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class SelectOneLanguageRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private SelectOneLanguage selectLanguage;
+
+ public SelectOneLanguageRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(SelectOneLanguageRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ selectLanguage = new SelectOneLanguage();
+ facesContext.getApplication().addComponent("org.apache.myfaces.CAPTCHA", "org.apache.myfaces.custom.captcha.CAPTCHAComponent");
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ selectLanguage = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ selectLanguage, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs))
+ {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneLanguage/SelectOneLanguageRendererTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java?rev=700627&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRendererTest.java Tue Sep 30 16:11:04 2008
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.selectOneRow;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.HtmlCheckAttributesUtil;
+import org.apache.myfaces.test.utils.HtmlRenderedAttr;
+import org.apache.shale.test.mock.MockResponseWriter;
+
+public class SelectOneRowRendererTest extends AbstractTomahawkViewControllerTestCase
+{
+ private SelectOneRow selectOneRow;
+
+ public SelectOneRowRendererTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite() {
+ return new TestSuite(SelectOneRowRendererTest.class);
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ selectOneRow = new SelectOneRow();
+ selectOneRow.setGroupName("groupName");
+ }
+
+ public void tearDown() throws Exception
+ {
+ super.tearDown();
+ selectOneRow = null;
+ }
+
+ public void testHtmlPropertyPassTru() throws Exception
+ {
+ HtmlRenderedAttr[] attrs = HtmlCheckAttributesUtil.generateBasicAttrs();
+
+ MockResponseWriter writer = (MockResponseWriter)facesContext.getResponseWriter();
+ HtmlCheckAttributesUtil.checkRenderedAttributes(
+ selectOneRow, facesContext, writer, attrs);
+ if(HtmlCheckAttributesUtil.hasFailedAttrRender(attrs)) {
+ fail(HtmlCheckAttributesUtil.constructErrorMessage(attrs, writer.getWriter().toString()));
+ }
+ }
+}