Made test.ecf compilable.
This commit is contained in:
@@ -7,7 +7,6 @@ class
|
|||||||
GCSE_PAGE_ITEM
|
GCSE_PAGE_ITEM
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
|
|
||||||
DEBUG_OUTPUT
|
DEBUG_OUTPUT
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
@@ -139,62 +138,62 @@ feature -- Element change
|
|||||||
|
|
||||||
feature -- Output
|
feature -- Output
|
||||||
|
|
||||||
debug_output: STRING_8
|
debug_output: STRING_8
|
||||||
-- <Precursor>
|
-- <Precursor>
|
||||||
do
|
do
|
||||||
create Result.make_from_string ("%NPage Item details%N")
|
create Result.make_from_string ("%NPage Item details%N")
|
||||||
if attached title as l_title then
|
if attached title as l_title then
|
||||||
Result.append ("Title:")
|
Result.append ("Title:")
|
||||||
Result.append (l_title)
|
Result.append (l_title)
|
||||||
Result.append_character ('%N')
|
Result.append_character ('%N')
|
||||||
end
|
|
||||||
if attached kind as l_kind then
|
|
||||||
Result.append ("Kind:")
|
|
||||||
Result.append (l_kind)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached html_title as l_html_title then
|
|
||||||
Result.append ("Html title:")
|
|
||||||
Result.append (l_html_title)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached link as l_link then
|
|
||||||
Result.append ("Link:")
|
|
||||||
Result.append (l_link)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached display_link as l_display_link then
|
|
||||||
Result.append ("Display link:")
|
|
||||||
Result.append (l_display_link)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached snippet as l_snippet then
|
|
||||||
Result.append ("Snippet:")
|
|
||||||
Result.append (l_snippet)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached html_snippet as l_html_snippet then
|
|
||||||
Result.append ("Html snippet:")
|
|
||||||
Result.append (l_html_snippet)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached cache_id as l_cache_id then
|
|
||||||
Result.append ("Cache_id:")
|
|
||||||
Result.append (l_cache_id)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached formatted_url as l_formatted_url then
|
|
||||||
Result.append ("Formatted url:")
|
|
||||||
Result.append (l_formatted_url)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
if attached html_formatted_url as l_html_formatted_url then
|
|
||||||
Result.append ("Html formatted url:")
|
|
||||||
Result.append (l_html_formatted_url)
|
|
||||||
Result.append_character ('%N')
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
if attached kind as l_kind then
|
||||||
|
Result.append ("Kind:")
|
||||||
|
Result.append (l_kind)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached html_title as l_html_title then
|
||||||
|
Result.append ("Html title:")
|
||||||
|
Result.append (l_html_title)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached link as l_link then
|
||||||
|
Result.append ("Link:")
|
||||||
|
Result.append (l_link)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached display_link as l_display_link then
|
||||||
|
Result.append ("Display link:")
|
||||||
|
Result.append (l_display_link)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached snippet as l_snippet then
|
||||||
|
Result.append ("Snippet:")
|
||||||
|
Result.append (l_snippet)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached html_snippet as l_html_snippet then
|
||||||
|
Result.append ("Html snippet:")
|
||||||
|
Result.append (l_html_snippet)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached cache_id as l_cache_id then
|
||||||
|
Result.append ("Cache_id:")
|
||||||
|
Result.append (l_cache_id)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached formatted_url as l_formatted_url then
|
||||||
|
Result.append ("Formatted url:")
|
||||||
|
Result.append (l_formatted_url)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
if attached html_formatted_url as l_html_formatted_url then
|
||||||
|
Result.append ("Html formatted url:")
|
||||||
|
Result.append (l_html_formatted_url)
|
||||||
|
Result.append_character ('%N')
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2015 Javier Velilla, Jocelyn Fiat, Eiffel Software and others"
|
copyright: "2011-2015 Javier Velilla, Jocelyn Fiat, Eiffel Software and others"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
note
|
note
|
||||||
description : "test application root class"
|
description : "test application root class"
|
||||||
date : "$Date: 2015-10-08 07:51:29 -0300 (ju., 08 oct. 2015) $"
|
date : "$Date: 2015-12-02 10:27:38 -0300 (mi. 02 de dic. de 2015) $"
|
||||||
revision : "$Revision: 97966 $"
|
revision : "$Revision: 98180 $"
|
||||||
|
|
||||||
class
|
class
|
||||||
APPLICATION
|
APPLICATION
|
||||||
@@ -27,20 +27,20 @@ feature {NONE} -- Initialization
|
|||||||
if attached {GCSE_RESPONSE} gcse.last_result as l_result then
|
if attached {GCSE_RESPONSE} gcse.last_result as l_result then
|
||||||
if attached l_result.current_page as l_page then
|
if attached l_result.current_page as l_page then
|
||||||
print ("Current Page%N")
|
print ("Current Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
if attached l_result.next_page as l_page then
|
if attached l_result.next_page as l_page then
|
||||||
print ("Next Page%N")
|
print ("Next Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
if attached l_result.previous_page as l_page then
|
if attached l_result.previous_page as l_page then
|
||||||
print ("Previous Page%N")
|
print ("Previous Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
|
|
||||||
if attached l_result.items as l_items then
|
if attached l_result.items as l_items then
|
||||||
print ("Number of items:" + l_items.count.out)
|
print ("Number of items:" + l_items.count.out)
|
||||||
across l_items as ic loop print (ic.item.to_string) end
|
across l_items as ic loop print (ic.item.debug_output) end
|
||||||
end
|
end
|
||||||
|
|
||||||
if attached l_result.next_page as l_page then
|
if attached l_result.next_page as l_page then
|
||||||
@@ -52,20 +52,20 @@ feature {NONE} -- Initialization
|
|||||||
if attached {GCSE_RESPONSE} gcse.last_result as l_result then
|
if attached {GCSE_RESPONSE} gcse.last_result as l_result then
|
||||||
if attached l_result.current_page as l_page then
|
if attached l_result.current_page as l_page then
|
||||||
print ("Current Page%N")
|
print ("Current Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
if attached l_result.next_page as l_page then
|
if attached l_result.next_page as l_page then
|
||||||
print ("Next Page%N")
|
print ("Next Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
if attached l_result.previous_page as l_page then
|
if attached l_result.previous_page as l_page then
|
||||||
print ("Previous Page%N")
|
print ("Previous Page%N")
|
||||||
print (l_page.to_string)
|
print (l_page.debug_output)
|
||||||
end
|
end
|
||||||
|
|
||||||
if attached l_result.items as l_items then
|
if attached l_result.items as l_items then
|
||||||
print ("Number of items:" + l_items.count.out)
|
print ("Number of items:" + l_items.count.out)
|
||||||
across l_items as ic loop print (ic.item.to_string) end
|
across l_items as ic loop print (ic.item.debug_output) end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
|
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
|
||||||
</option>
|
</option>
|
||||||
<setting name="console_application" value="true"/>
|
<setting name="console_application" value="true"/>
|
||||||
<precompile name="base_pre" location="$ISE_PRECOMP\base-safe.ecf"/>
|
|
||||||
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
||||||
<library name="gcse" location="..\gcse-safe.ecf" readonly="false"/>
|
<library name="gcse" location="..\gcse-safe.ecf" readonly="false"/>
|
||||||
<library name="testing" location="$ISE_LIBRARY\library\testing\testing-safe.ecf"/>
|
<library name="testing" location="$ISE_LIBRARY\library\testing\testing-safe.ecf"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user