Commit 94dce469 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2007-10-09 Fabien

* add setPreferredListboxListModeLineCount(10) to ListBoxZuite_reset to diplay the correct lines number
2007-10-15 Mame
* Modify testDialogButtonTranslated
test is now working

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17010 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78be1cd6
......@@ -72,18 +72,18 @@
-->\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Localizer/erp5_ui/Base_createUITestLanguages"></td>\n
<td tal:content="string: ${here/portal_url}/portal_skins/erp5_ui_test/Base_createUITestLanguages"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Localizer/erp5_ui/Base_addUITestTranslation?message=Search Foos&translation_1=Look for Foos&translation_2=Searching Foos"></td>\n
<td tal:content="string: ${here/portal_url}/portal_skins/erp5_ui_test//Base_addUITestTranslation?message=Search Foos&translation_1=Seet Foos&translation_2=Searching Foos"></td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo%20Module/PortalType_deleteAction?id=search2">Delete second action if exist</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo%20Module/PortalType_deleteAction?id=search2&name=Search2&category=object_search&action=string:%24{object_url}/FooModule_viewSearchDialog">Create a second dummy search action to test the dynamic creation of select action drop-down list</td>\n
<td></td>\n
</tr>\n
\n
......@@ -92,6 +92,11 @@
<td tal:content="string: ${here/portal_url}/foo_module/FooModule_viewSearchDialog?dialog_category=object_search">/erp5/foo_module/foo_module/FooModule_viewSearchDialog?dialog_category=object_search</td>\n
<td></td>\n
</tr>\n
<tr>\n
\t<td>select</td>\n
\t<td>select_language</td>\n
\t<td>label=English</td>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
<td>//select[@id="dialog_selector"]</td>\n
......@@ -117,11 +122,7 @@
<td>Search</td>\n
</tr>\n
\n
<tr>\n
\t<td>select</td>\n
\t<td>select_language</td>\n
\t<td>label=English</td>\n
</tr>\n
\n
\n
<tr>\n
\t<td>verifyValue</td>\n
......@@ -131,17 +132,17 @@
<tr>\n
\t<td>selectAndWait</td>\n
\t<td>select_language</td>\n
\t<td>label=Test_language_1</td>\n
\t<td>label=Wolof</td>\n
</tr>\n
<tr>\n
\t<td>verifyValue</td>\n
\t<td>dialog_submit_button</td>\n
\t<td>Look for Foos</td>\n
\t<td>Seet Foos</td>\n
</tr>\n
<tr>\n
\t<td>selectAndWait</td>\n
\t<td>select_language</td>\n
\t<td>label=Test_language_2</td>\n
\t<td>label=Xhosa</td>\n
</tr>\n
<tr>\n
\t<td>verifyValue</td>\n
......
......@@ -71,8 +71,8 @@
<value> <string>"""Add a New Test language."""\n
\n
\n
context.getPortalObject().Localizer.erp5_ui.message_edit(message=message, language=\'tl1\', translation=translation_1,note=None)\n
context.getPortalObject().Localizer.erp5_ui.message_edit(message=message, language=\'tl2\', translation=translation_2,note=None)\n
context.getPortalObject().Localizer.erp5_ui.message_edit(message=\'Search Foos\', language=\'wo\', translation=\'Seet Foos\',note=None)\n
context.getPortalObject().Localizer.erp5_ui.message_edit(message=\'Search Foos\', language=\'xh\', translation=\'Searching Foos\',note=None)\n
\n
original_message = "Search Foos"\n
return "Translation of %s updated" % (original_message, )\n
......@@ -98,7 +98,7 @@ return "Translation of %s updated" % (original_message, )\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>message = "Search Foos",translation_1 ="Look for Foos",translation_2="Searching Foos"</string> </value>
<value> <string>message = "Search Foos",translation_1 =" Seet Foos",translation_2="Searching Foos"</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -144,7 +144,7 @@ return "Translation of %s updated" % (original_message, )\n
<value>
<tuple>
<string>Search Foos</string>
<string>Look for Foos</string>
<string> Seet Foos</string>
<string>Searching Foos</string>
</tuple>
</value>
......
......@@ -71,8 +71,8 @@
<value> <string>"""Add a New Test language."""\n
\n
\n
context.getPortalObject().Localizer.manage_addLanguage(\'tl1\')\n
context.getPortalObject().Localizer.manage_addLanguage(\'tl2\')\n
context.getPortalObject().Localizer.erp5_ui.manage_addLanguage(\'wo\')\n
context.getPortalObject().Localizer.erp5_ui.manage_addLanguage(\'xh\')\n
\n
\n
return \'New Languages Added.\'\n
......
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