From c10e0352b5ef52a73e82792ccec719e72315f7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 17 Jul 2006 19:53:45 +0000 Subject: [PATCH] Added incomplete tests suite for page templates. For now, only checks that page templates use actions slots correctly. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8459 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_tests/page_templates_zuite.xml | 55 +++++ .../test_exchange_actions_present.xml | 136 +++++++++++ .../test_jump_actions_present.xml | 135 +++++++++++ .../test_object_actions_present.xml | 108 +++++++++ .../test_workflow_actions_present.xml | 113 +++++++++ .../erp5_ui_test/PTZuite_CommonTemplate.xml | 117 ++++++++++ .../erp5_ui_test/PortalType_addAction.xml | 217 ++++++++++++++++++ bt5/erp5_ui_test/bt/change_log | 5 +- bt5/erp5_ui_test/bt/revision | 2 +- bt5/erp5_ui_test/bt/template_path_list | 4 +- bt5/erp5_ui_test/bt/version | 2 +- 11 files changed, 890 insertions(+), 4 deletions(-) create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_exchange_actions_present.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_jump_actions_present.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_object_actions_present.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_workflow_actions_present.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PTZuite_CommonTemplate.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PortalType_addAction.xml diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite.xml new file mode 100644 index 0000000000..2a2e090f1e --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite.xml @@ -0,0 +1,55 @@ +<?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>filename_glob</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>filesystem_path</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>page_templates_zuite</string> </value> + </item> + <item> + <key> <string>test_case_metatypes</string> </key> + <value> + <tuple> + <string>File</string> + <string>Page Template</string> + </tuple> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Testing Page Templates</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_exchange_actions_present.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_exchange_actions_present.xml new file mode 100644 index 0000000000..0524b001f5 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_exchange_actions_present.xml @@ -0,0 +1,136 @@ +<?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>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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 Exchange Actions</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Exchange Actions</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action&name=Dummy Exchange&category=object_exchange&action=string:%24{portal_url}/view">Create a dummy action</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/1/view">/erp5/foo_module/1/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=Import / Export</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Welcome to ERP5</td>\n + <td></td>\n +</tr>\n +<!-- TODO: test "real workflow actions" -->\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>test_exchange_actions_present</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_jump_actions_present.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_jump_actions_present.xml new file mode 100644 index 0000000000..0017257d69 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_jump_actions_present.xml @@ -0,0 +1,135 @@ +<?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>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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 Jump Actions</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Jump Actions</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action&name=Jump Portal&category=object_jump&action=string:%24{portal_url}/view">Create a dummy action that redirects to the portal</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/1/view">/erp5/foo_module/1/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>selectAndWait</td>\n + <td>jump_select</td>\n + <td>Jump Portal</td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Welcome to ERP5</td>\n + <td></td>\n +</tr>\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>test_jump_actions_present</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_object_actions_present.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_object_actions_present.xml new file mode 100644 index 0000000000..c207816d91 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_object_actions_present.xml @@ -0,0 +1,108 @@ +<?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 Object Actions</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Object Actions</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action&name=Open Portal&category=object_action&action=string:%24{portal_url}/view">Create a dummy action that redirects to the portal</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/1/view">/erp5/foo_module/1/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>selectAndWait</td>\n + <td>action_select</td>\n + <td>Open Portal</td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Welcome to ERP5</td>\n + <td></td>\n +</tr>\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>test_object_actions_present</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/PathTemplateItem/portal_tests/page_templates_zuite/test_workflow_actions_present.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_workflow_actions_present.xml new file mode 100644 index 0000000000..797bff8093 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/test_workflow_actions_present.xml @@ -0,0 +1,113 @@ +<?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 Workflow Actions</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Workflow Actions</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n +<!-- "fake" workflow actions can be created as a workflow action, this is the\n +way used to display workflow actions on a folder, passing transitions for all\n +objects in the selection.\n +-->\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action&name=Workflow Action to Portal&category=workflow&action=string:%24{portal_url}/view">Create a dummy action that redirects to the portal</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/1/view">/erp5/foo_module/1/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>selectAndWait</td>\n + <td>action_select</td>\n + <td>Workflow Action to Portal</td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Welcome to ERP5</td>\n + <td></td>\n +</tr>\n +<!-- TODO: test "real workflow actions" -->\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>test_workflow_actions_present</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/PTZuite_CommonTemplate.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PTZuite_CommonTemplate.xml new file mode 100644 index 0000000000..f94b44143e --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PTZuite_CommonTemplate.xml @@ -0,0 +1,117 @@ +<?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>_owner</string> </key> + <value> + <none/> + </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 + <!-- reuse listbox suite reset to clear modules. -->\n + <tr>\n + <td>open</td>\n + <td tal:content="string: ${here/portal_url}/foo_module/ListBoxZuite_reset"/>\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 + <!-- create a Foo -->\n + <td tal:content="string: ${here/portal_url}/foo_module/Foo_createObjects?start:int=1&num:int=1"/>\n + <td></td>\n + </tr>\n + <tr>\n + <td>assertTextPresent</td>\n + <td>Created Successfully.</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>open</td>\n + <td>/erp5/foo_module/ListBoxZuite_waitForActivities</td>\n + <td></td>\n + </tr>\n + <tr>\n + <td>assertTextPresent</td>\n + <td>Done.</td>\n + <td></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>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PTZuite_CommonTemplate</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/PortalType_addAction.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PortalType_addAction.xml new file mode 100644 index 0000000000..96dd044754 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/PortalType_addAction.xml @@ -0,0 +1,217 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <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_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <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>_body</string> </key> + <value> <string>"""Add or replace an action on a type informations from types tool.\n +"""\n +assert context.meta_type == \'ERP5 Type Information\'\n +\n +existing_actions_indexs = []\n +for idx, ai in enumerate(context.listActions()):\n + if ai.getId() == id:\n + existing_actions_indexs.append(idx)\n +\n +if existing_actions_indexs:\n + context.deleteActions(existing_actions_indexs)\n +\n +context.addAction( id=id,\n + action=action,\n + name=name,\n + condition=condition,\n + permission=permission,\n + category=category,\n + icon=icon, )\n +\n +return \'Set Successfully.\'\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>name=None, id=None, action=None, icon=None, condition=None, permission=\'View\', category=None</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>7</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>name</string> + <string>id</string> + <string>action</string> + <string>icon</string> + <string>condition</string> + <string>permission</string> + <string>category</string> + <string>_getattr_</string> + <string>context</string> + <string>AssertionError</string> + <string>existing_actions_indexs</string> + <string>_getiter_</string> + <string>enumerate</string> + <string>idx</string> + <string>ai</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <none/> + <none/> + <none/> + <none/> + <none/> + <string>View</string> + <none/> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PortalType_addAction</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <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 6c4e173334..fbc9fe182e 100644 --- a/bt5/erp5_ui_test/bt/change_log +++ b/bt5/erp5_ui_test/bt/change_log @@ -1,3 +1,6 @@ +2006-07-17 jerome +* Added incomplete tests suite for page templates. For now, only checks that page templates use actions slots correctly. + 2006-07-17 yo * Add testMetaTypes. @@ -9,4 +12,4 @@ * Add missing properties to Listbox_setPropertyList. 2006-06-30 yo -* initial version \ No newline at end of file +* initial version diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 19c7bdba7b..e440e5c842 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -16 \ No newline at end of file +3 \ 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 84261af403..b5229aaa6a 100644 --- a/bt5/erp5_ui_test/bt/template_path_list +++ b/bt5/erp5_ui_test/bt/template_path_list @@ -1,3 +1,5 @@ portal_categories/foo_category/** portal_tests/listbox_zuite -portal_tests/listbox_zuite/** \ No newline at end of file +portal_tests/listbox_zuite/** +portal_tests/page_templates_zuite +portal_tests/page_templates_zuite/** \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/version b/bt5/erp5_ui_test/bt/version index ceab6e11ec..2f4536184b 100644 --- a/bt5/erp5_ui_test/bt/version +++ b/bt5/erp5_ui_test/bt/version @@ -1 +1 @@ -0.1 \ No newline at end of file +0.2 \ No newline at end of file -- 2.30.9