PageRenderTime 257ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

/wheels/tests/view/miscellaneous/$element.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 20 lines | 17 code | 3 blank | 0 comment | 1 complexity | 44eedbdb38f4136a3b4fe5404ce666fc MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="setup">
 4		<cfset loc.controller = controller(name="dummy")>
 5		<cfset loc.args = {}>
 6		<cfset loc.args.name = "textarea">
 7		<cfset loc.args.attributes = {}>
 8		<cfset loc.args.attributes.rows = 10>
 9		<cfset loc.args.attributes.cols = 40>
10		<cfset loc.args.attributes.name = "textareatest">
11		<cfset loc.args.content = "this is a test to see if textarea renders">
12	</cffunction>
13
14	<cffunction name="test_with_all_options">
15		<cfset loc.e = loc.controller.$element(argumentcollection=loc.args)>
16		<cfset loc.r = '<textarea cols="40" name="textareatest" rows="10">this is a test to see if textarea renders</textarea>'>
17		<cfset assert("loc.e eq loc.r")>
18	</cffunction>
19
20</cfcomponent>