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

/wheels/tests/view/text/h.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 14 lines | 11 code | 3 blank | 0 comment | 0 complexity | 4e8689b337c404330abbb7e6720180d6 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="setup">
 4		<cfset loc.controller = controller(name="dummy")>
 5		<cfset loc.content = "<b>This ""is"" a test string & it should format properly</b>">
 6	</cffunction>
 7
 8	<cffunction name="test_should_escape_html_entities">
 9		<cfset loc.e = loc.controller.h(loc.content)>
10		<cfset loc.r = "&lt;b&gt;This &quot;is&quot; a test string &amp; it should format properly&lt;/b&gt;">
11		<cfset assert("loc.e eq loc.r")>
12	</cffunction>
13
14</cfcomponent>