Commit e17d814e authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2009-08-25 Mohamadou

* Refactor erp_ui_test to reduce "If mobile" statments.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28621 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfab4f98
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>description</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>text</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<tal:block metal:define-macro="init">\n
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_reset</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Reset Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/view</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
<tal:block metal:define-macro="checkCurrentPage">\n
<tr>\n
<td>assertValue</td>\n
<td tal:content="python: \'id=%s_page_selection\' % (prefix, )"></td>\n
<td tal:content="python: \'%d\' % (lines_per_pages*(set_page-1), )"></td>\n
</tr>\n
</tal:block>\n
</tal:block>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Common Template for ListBoxZuite</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ListBoxZuite_CommonTemplate</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Common Template for ListBoxZuite</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2009-08-25 Mohamadou
* Refactor erp_ui_test to reduce "If mobile" statments.
2009-04-20 Kazuhiko 2009-04-20 Kazuhiko
* initial prototype. * initial prototype.
\ No newline at end of file
2 5
\ No newline at end of file \ No newline at end of file
...@@ -89,12 +89,13 @@ ...@@ -89,12 +89,13 @@
<tal:block metal:define-macro="checkCurrentPage">\n <tal:block metal:define-macro="checkCurrentPage">\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n <!--<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td tal:content="python: \'id=%s_set_page\' % (prefix, )"></td>\n <td tal:content="python: \'id=%s_set_page\' % (prefix, )"></td>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n <tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td tal:content="python: \'id=%s_page_selection\' % (prefix, )"></td>\n <td tal:content="python: \'id=%s_page_selection\' % (prefix, )"></td>\n
</tal:block>\n </tal:block> -->\n
<td tal:content="python: \'id=%s_set_page\' % (prefix, )"></td>\n
<td tal:content="set_page"></td>\n <td tal:content="set_page"></td>\n
</tr>\n </tr>\n
</tal:block>\n </tal:block>\n
......
2009-08-25 Mohamadou
* Refactor erp_ui_test to reduce "If mobile" statments.
2009-08-20 Mohamadou 2009-08-20 Mohamadou
* Skip business_template_zuite in mobile ui tests. * Skip business_template_zuite in mobile ui tests.
......
479 482
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment