[Erp5-report] r29507 - in /erp5/trunk/bt5/erp5_ui_test: PathTemplateItem/portal_tests/listb...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 9 11:18:54 CEST 2009


Author: vincent
Date: Fri Oct  9 11:18:52 2009
New Revision: 29507

URL: http://svn.erp5.org?rev=29507&view=rev
Log:
Add a step checking that foo_line_selection does not exist.

Added:
    erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml
Modified:
    erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml
    erp5/trunk/bt5/erp5_ui_test/bt/revision

Modified: erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml?rev=29507&r1=29506&r2=29507&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/PathTemplateItem/portal_tests/listbox_zuite/testNotExistingSelection.xml [utf8] Fri Oct  9 11:18:52 2009
@@ -52,8 +52,6 @@
 </thead><tbody>\n
 <tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
 \n
-<!-- XXX TODO: selection foo_line_selection has to be deleted at the beginning of this test.\n
-For now, selection too does not allow such deletion, so, this test is only valid once on a new site...-->\n
 <tr>\n
   <td>open</td>\n
   <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
@@ -73,6 +71,16 @@
   <td>assertTextPresent</td>\n
   <td>Done.</td>\n
   <td></td>\n
+</tr>\n
+<tr>\n
+  <td>open</td>\n
+  <td>${base_url}/Base_checkSelectionExists?selection_name=foo_line_selection</td>\n
+  <td></td>\n
+</tr>\n
+<tr>\n
+  <td>assertTextPresent</td>\n
+  <td></td>\n
+  <td>False</td>\n
 </tr>\n
 <tr>\n
   <td>open</td>\n

Added: erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml?rev=29507&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml (added)
+++ erp5/trunk/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/Base_checkSelectionExists.xml [utf8] Fri Oct  9 11:18:52 2009
@@ -1,0 +1,125 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </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>return str(context.getPortalObject().portal_selections.getSelectionFor(selection_name) is not None)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string>selection_name</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>1</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>selection_name</string>
+                            <string>str</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>None</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Base_checkSelectionExists</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ui_test/bt/revision?rev=29507&r1=29506&r2=29507&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_ui_test/bt/revision [utf8] Fri Oct  9 11:18:52 2009
@@ -1,1 +1,1 @@
-494
+496




More information about the Erp5-report mailing list