/wheels/tests/view/forms/textFieldTag.cfc
http://cfwheels.googlecode.com/ · ColdFusion CFScript · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · 24f2f076833e771caccdbe05ceda8af7 MD5 · raw file
- <cfcomponent extends="wheelsMapping.Test">
- <cffunction name="setup">
- <cfset loc.controller = controller(name="dummy")>
- </cffunction>
- <cffunction name="test_x_textFieldTag_valid">
- <cfset loc.controller.textFieldTag(name="someName")>
- </cffunction>
-
- <cffunction name="test_custom_textfieldTag_type">
- <cfset loc.textField = loc.controller.textFieldTag(name="search", label="Search me", type="search")>
- <cfset loc.foundCustomType = YesNoFormat(FindNoCase('type="search"', loc.textField)) />
- <cfset assert('loc.foundCustomType eq true')>
- </cffunction>
-
- </cfcomponent>