Commit 64843881 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Test creation of one element in svg-edit and validate if everything will be saved correctly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45620 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb8631ee
...@@ -54,6 +54,36 @@ ...@@ -54,6 +54,36 @@
<td>${ung_url}/ERP5Site_createNewWebDocument?template=web_illustration_template</td>\n <td>${ung_url}/ERP5Site_createNewWebDocument?template=web_illustration_template</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>storeEval</td>\n
<td>selenium.browserbot.getCurrentWindow().document.location.href.split("WebIllustration_viewEditor")[0]</td>\n
<td>url</td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${url}/WebIllustration_setSampleinTextContent</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${url}/WebIllustration_viewEditor?editable_mode:int=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForCondition</td>\n
<td>selenium.isElementPresent("//ellipse[@id=\'svg_1\']")</td>\n
<td>9000</td>\n
</tr>\n
<tr>\n
<td>verifyAttribute</td>\n
<td>//ellipse[@id=\'svg_1\']@ry</td>\n
<td>46</td>\n
</tr>\n
<tr>\n <tr>\n
<td>verifyText</td>\n <td>verifyText</td>\n
<td>//a[@name="document_title"]</td>\n <td>//a[@name="document_title"]</td>\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</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 encoding="cdata"><![CDATA[
text_content = "<svg width=\'640\' height=\'480\' xmlns=\'http://www.w3.org/2000/svg\'> \\\n
<g><title>Layer 1</title> \\\n
<ellipse ry=\'46\' rx=\'47\' id=\'svg_1\' cy=\'93\' cx=\'138\' stroke-width=\'5\' stroke=\'#000000\' fill=\'#FF0000\'/> \\\n
</g></svg>"\n
context.setTextContent(text_content)\n
\n
return "Done."\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebIllustration_setSampleinTextContent</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
53 54
\ No newline at end of file \ No newline at end of file
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