/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

  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.controller = controller(name="dummy")>
  4. </cffunction>
  5. <cffunction name="test_x_textFieldTag_valid">
  6. <cfset loc.controller.textFieldTag(name="someName")>
  7. </cffunction>
  8. <cffunction name="test_custom_textfieldTag_type">
  9. <cfset loc.textField = loc.controller.textFieldTag(name="search", label="Search me", type="search")>
  10. <cfset loc.foundCustomType = YesNoFormat(FindNoCase('type="search"', loc.textField)) />
  11. <cfset assert('loc.foundCustomType eq true')>
  12. </cffunction>
  13. </cfcomponent>