PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 3	<cffunction name="setup">
 4		<cfset loc.controller = controller(name="dummy")>
 5	</cffunction>
 6
 7	<cffunction name="test_x_textFieldTag_valid">
 8		<cfset loc.controller.textFieldTag(name="someName")>
 9	</cffunction>
10	
11	<cffunction name="test_custom_textfieldTag_type">
12		<cfset loc.textField = loc.controller.textFieldTag(name="search", label="Search me", type="search")>
13		<cfset loc.foundCustomType = YesNoFormat(FindNoCase('type="search"', loc.textField)) />
14		<cfset assert('loc.foundCustomType eq true')>
15	</cffunction>
16	
17</cfcomponent>