From cf5d82d002a179bf856b223b43b25f3b21b2edfc Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 27 Jul 2006 05:02:52 +0000 Subject: [PATCH] 2006-07-27 yo * Add a new suite "check_box_field_zuite". * Add my_frozen to Foo_view. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8820 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_tests/check_box_field_zuite.xml | 38 +++ .../testSimpleCheckBoxField.xml | 170 ++++++++++++ .../FooModule_viewFooList/listbox.xml | 14 +- .../portal_skins/erp5_ui_test/Foo_view.xml | 2 + .../erp5_ui_test/Foo_view/listbox.xml | 12 + .../Foo_view/listbox_quantity.xml | 254 ++++++++++++++++++ .../erp5_ui_test/Foo_view/my_frozen.xml | 174 ++++++++++++ bt5/erp5_ui_test/bt/change_log | 4 + bt5/erp5_ui_test/bt/revision | 2 +- bt5/erp5_ui_test/bt/template_path_list | 2 + 10 files changed, 664 insertions(+), 8 deletions(-) create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml new file mode 100644 index 0000000000..1b0682864e --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite.xml @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Zelenium.zuite</string> + <string>Zuite</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>check_box_field_zuite</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Testing CheckBoxField</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml new file mode 100644 index 0000000000..73783edc72 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/check_box_field_zuite/testSimpleCheckBoxField.xml @@ -0,0 +1,170 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PageTemplates.ZopePageTemplate</string> + <string>ZopePageTemplate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <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>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n + xmlns:metal="http://xml.zope.org/namespaces/metal">\n +<head>\n +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n +<title>Test Simple CheckBoxField</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Simple CheckBoxField</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/FooModule_createObjects?num:int=1</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTextPresent</td>\n +\t<td>Created Successfully.</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/ListBoxZuite_waitForActivities</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTextPresent</td>\n +\t<td>Done.</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>open</td>\n +\t<td>/erp5/foo_module/view</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>link=Title 0</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementNotPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>click</td>\n +\t<td>field_my_frozen</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>Base_edit:method</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>verifyTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>click</td>\n +\t<td>field_my_frozen</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>clickAndWait</td>\n +\t<td>Base_edit:method</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>verifyTitle</td>\n +\t<td>Foo</td>\n +\t<td></td>\n +</tr>\n +<tr>\n +\t<td>assertElementNotPresent</td>\n +\t<td>//input[@name="field_my_frozen" and @checked]</td>\n +\t<td></td>\n +</tr>\n +\n +</tbody></table>\n +</body>\n +</html>\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testSimpleCheckBoxField</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml index 2cdf0c342b..7af946aa6a 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooModule_viewFooList/listbox.xml @@ -431,12 +431,7 @@ <item> <key> <string>meta_types</string> </key> <value> - <list> - <tuple> - <string>ERP5 Delivery</string> - <string>ERP5 Delivery</string> - </tuple> - </list> + <list/> </value> </item> <item> @@ -446,7 +441,12 @@ <item> <key> <string>portal_types</string> </key> <value> - <list/> + <list> + <tuple> + <string>Foo</string> + <string>Foo</string> + </tuple> + </list> </value> </item> <item> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml index 79e0ad476f..34b0618d08 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view.xml @@ -99,6 +99,7 @@ <list> <string>listbox_title</string> <string>listbox_id</string> + <string>listbox_quantity</string> </list> </value> </item> @@ -117,6 +118,7 @@ <value> <list> <string>my_quantity</string> + <string>my_frozen</string> </list> </value> </item> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml index 13a18fe33a..01b9e9ab6e 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox.xml @@ -345,6 +345,10 @@ <string>title</string> <string>Title</string> </tuple> + <tuple> + <string>quantity</string> + <string>Quantity</string> + </tuple> </list> </value> </item> @@ -396,6 +400,10 @@ <string>title</string> <string>Title</string> </tuple> + <tuple> + <string>quantity</string> + <string>quantity</string> + </tuple> </list> </value> </item> @@ -437,6 +445,10 @@ <list/> </value> </item> + <item> + <key> <string>page_template</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>portal_types</string> </key> <value> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml new file mode 100644 index 0000000000..f939314199 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/listbox_quantity.xml @@ -0,0 +1,254 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>FloatField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_quantity</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>not_float</string> </key> + <value> <string>You did not enter a floating point number.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>input_style</string> </key> + <value> <string>-1234.5</string> </value> + </item> + <item> + <key> <string>precision</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Quantity</string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml new file mode 100644 index 0000000000..64569ca944 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_view/my_frozen.xml @@ -0,0 +1,174 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>CheckBoxField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_frozen</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Frozen</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/bt/change_log b/bt5/erp5_ui_test/bt/change_log index 88988898ba..60320bea0f 100644 --- a/bt5/erp5_ui_test/bt/change_log +++ b/bt5/erp5_ui_test/bt/change_log @@ -1,3 +1,7 @@ +2006-07-27 yo +* Add a new suite "check_box_field_zuite". +* Add my_frozen to Foo_view. + 2006-07-26 Kevin * Test form_dialog Action List Rendering. * Extract PortalType_addAction delete part to new PortalType_deleteAction script. diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index dc7b54ad01..3e932fe8f1 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -33 \ No newline at end of file +34 \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/template_path_list b/bt5/erp5_ui_test/bt/template_path_list index 714a691a54..3c5535e9b2 100644 --- a/bt5/erp5_ui_test/bt/template_path_list +++ b/bt5/erp5_ui_test/bt/template_path_list @@ -1,5 +1,7 @@ portal_categories/foo_category/** portal_domains/foo_domain +portal_tests/check_box_field_zuite +portal_tests/check_box_field_zuite/** portal_tests/document_zuite portal_tests/document_zuite/** portal_tests/listbox_zuite -- 2.30.9