/wheels/tests/view/forms/textField.cfc

http://cfwheels.googlecode.com/ · ColdFusion CFScript · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · 1c10f1d178a075697b789b779a2c6fb1 MD5 · raw file

  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.controller = controller(name="ControllerWithModel")>
  4. </cffunction>
  5. <cffunction name="test_x_textField_valid">
  6. <cfset loc.controller.textField(label="First Name", objectName="user", property="firstName")>
  7. </cffunction>
  8. <cffunction name="test_maxlength_textfield_valid">
  9. <cfset loc.textField = loc.controller.textField(label="First Name", objectName="user", property="firstName")>
  10. <cfset loc.foundMaxLength = YesNoFormat(FindNoCase('maxlength="50"', loc.textField)) />
  11. <cfset assert('loc.foundMaxLength eq true')>
  12. </cffunction>
  13. </cfcomponent>