From 72d08a1fc56dc7f74ffafc78bb2f82edd6272ed7 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Thu, 8 Apr 2010 07:29:41 +0000 Subject: [PATCH] Add test for bug #1549 git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34351 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../testListModeListboxProxy.xml | 7 ++ .../Foo_viewListBoxProxyField/listbox.xml | 4 + .../listbox_constant_string_field.xml | 93 +++++++++++++++++++ bt5/erp5_ui_test/bt/revision | 2 +- 4 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox_constant_string_field.xml diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/proxy_field_zuite/testListModeListboxProxy.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/proxy_field_zuite/testListModeListboxProxy.xml index b6c151c25c..a08ec175d8 100644 --- a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/proxy_field_zuite/testListModeListboxProxy.xml +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/proxy_field_zuite/testListModeListboxProxy.xml @@ -114,6 +114,13 @@ <td></td>\n </tr>\n \n +<!-- proxyfield should retrieve TALES recursively -->\n +<tr>\n + <td>verifyText</td>\n + <td>//tr[@id=\'listbox_data_line_0\']/td[6]</td>\n + <td>a constant of forty-two is still the answer</td>\n +</tr>\n +\n <!-- Search row is here -->\n \n <tr>\n diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox.xml index 5924ee208e..2d57a2d808 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox.xml @@ -106,6 +106,10 @@ <string>start_date</string> <string>Start Date</string> </tuple> + <tuple> + <string>constant_string_field</string> + <string>Constant</string> + </tuple> </list> </value> </item> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox_constant_string_field.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox_constant_string_field.xml new file mode 100644 index 0000000000..a97e91a154 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Foo_viewListBoxProxyField/listbox_constant_string_field.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox_constant_string_field</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>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_constant_string_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Foo_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 4a722e9c7f..4c7798cefd 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -552 \ No newline at end of file +553 \ No newline at end of file -- 2.30.9