anchor.diff:  
   		<cfset loc.args.usedefault = false>
   		<cfset controller.usesLayout(argumentCollection=loc.args)>
  -		
  +
   		<cfset loc.e = "false">
   		<cfset loc.r = controller.$useLayout("index")>
   		<cfset assert('loc.e eq loc.r')>
   	</cffunction>
  -	
  +
   	<cffunction name="test_should_respect_only">
   		<cfset loc.args = {template="mylayout", only="index"}>
   		<cfset params = {controller="dummy", action="index"}>
   		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
   		<cfset controller.usesLayout(argumentCollection=loc.args)>
  -		
  +
   		<cfset loc.e = "true">
   		<cfset loc.r = controller.$useLayout("show")>
   		<cfset assert('loc.e eq loc.r')>
  
positive.code: 
  		<cfset loc.args.usedefault = false>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  		
  		<cfset loc.e = "false">
  		<cfset loc.r = controller.$useLayout("show")>
  		<cfset assert('loc.e eq loc.r')>
  		
  		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
  		
  		<cfset loc.e = "mylayout">
  		<cfset loc.r = controller.$useLayout("index")>
  		<cfset assert('loc.e eq loc.r')>		
  		
  	</cffunction>
  	
  	<cffunction name="test_should_respect_only_ajax">
  		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
  		<cfset loc.args = {template="mylayout", ajax="mylayout_ajax", only="index"}>
  		<cfset params = {controller="dummy", action="index"}>
  		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  		
  		<cfset loc.e = "true">
  		<cfset loc.r = controller.$useLayout("show")>
  		<cfset assert('loc.e eq loc.r')>
  
negative.code: 		<cfset loc.e = "show_layout">
  		<cfset loc.r = controller.$useLayout("show")>
  		<cfset assert('loc.e eq loc.r')>
  
  		<cfset loc.e = "true">
  		<cfset loc.r = controller.$useLayout("list")>
  		<cfset assert('loc.e eq loc.r')>
  
  		<cfset loc.args.usedefault = false>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  
  		<cfset loc.e = "false">
  		<cfset loc.r = controller.$useLayout("list")>
  		<cfset assert('loc.e eq loc.r')>
  	</cffunction>
  
  	<cffunction name="test_ajax_request_with_no_layout_specified_should_fallback_to_template">
  		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
  		<cfset loc.args = {template="controller_layout_test"}>
  		<cfset params = {controller="dummy", action="index"}>
  		<cfset controller = $controller(name="dummy").$createControllerObject(params)>
  		<cfset controller.controller_layout_test = controller_layout_test>
  		<cfset controller.usesLayout(argumentCollection=loc.args)>
  
  		<cfset loc.e = "index_layout">
  		<cfset loc.r = controller.$useLayout("index")>
  		<cfset assert('loc.e eq loc.r')>
  	</cffunction>
  
  	<cffunction name="test_using_method_ajax">
  		<cfset request.cgi.http_x_requested_with = "XMLHTTPRequest">
  		<cfset loc.args = {template="controller_layout_test", ajax="controller_layout_test_ajax"}>
  