PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 3	<cffunction name="setup">
 4		<cfset loc.controller = controller(name="ControllerWithModel")>
 5	</cffunction>
 6
 7	<cffunction name="test_x_textField_valid">
 8		<cfset loc.controller.textField(label="First Name", objectName="user", property="firstName")>
 9	</cffunction>
10
11	<cffunction name="test_maxlength_textfield_valid">
12		<cfset loc.textField = loc.controller.textField(label="First Name", objectName="user", property="firstName")>
13		<cfset loc.foundMaxLength = YesNoFormat(FindNoCase('maxlength="50"', loc.textField)) />
14		<cfset assert('loc.foundMaxLength eq true')>
15	</cffunction>
16
17</cfcomponent>