svn commit: r794398 - in /lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo: resources/project-logo.png resources/relativeLinks.txt test.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Jul 15 20:20:24 2009
New Revision: 794398

URL: http://svn.apache.org/viewvc?rev=794398&view=rev
Log:
Test tinymce image upload.

Added:
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/project-logo.png   (with props)
Modified:
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/relativeLinks.txt
    lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/test.xml

Added: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/project-logo.png
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/project-logo.png?rev=794398&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/project-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/relativeLinks.txt
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/relativeLinks.txt?rev=794398&r1=794397&r2=794398&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/relativeLinks.txt (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/resources/relativeLinks.txt Wed Jul 15 20:20:24 2009
@@ -12,6 +12,9 @@
 Content-Disposition: form-data; name="tinymce.content"
 <h1>Hello and welcome to the Lenya default publication!</h1>
 <p>
+<object data="index/testimage.png"/>
+</p>
+<p>
 Apache Lenya is a Java Open-Source Content Management System based on open standards such as XML and
 XSLT and the Apache Software Stack, in particular the XML publishing framework Apache Cocoon.
 </p>

Modified: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/test.xml
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/test.xml?rev=794398&r1=794397&r2=794398&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/test.xml (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/test/canoo/test.xml Wed Jul 15 20:20:24 2009
@@ -28,11 +28,46 @@
       <steps>
         <doLogin username="lenya" password="levi"/>
         
-        <invoke url="index.html?lenya.usecase=tinymce.edit" method="POST" contentFile="resources/relativeLinks.txt"/>
+        <invoke url="index.html?doctype=resource&amp;lenya.usecase=editors.createResource&amp;lenya.exitUsecase=editors.insertImage"/>
+        <setFileField name="file" fileName="resources/project-logo.png"/>
+        <setInputField name="nodeName" value="testimage"/>
+        <setInputField name="dublincore.title" value="Test Image"/>
+        <setSelectField name="visibleInNav" value="true"/>
+        <setRadioButton name="relation" value="child"/>
+        <setSelectField name="language" value="en"/>
+        <setInputField name="dublincore.creator" value="lenya"/>
+        <setRadioButton name="sample" value="Default Sample"/>
+        <clickButton name="submit"/>
+        
+        <invoke url="index.html?lenya.usecase=tinymce.edit"/>
+        <setInputField name="tinymce.content">
+          &lt;p&gt;
+          &lt;object data="index/testimage.png"/&gt;
+          &lt;/p&gt;
+        </setInputField>
+        <clickButton name="submit"/>
+        
+        <invoke url="index.xml"/>
+        <verifyXPath xpath="//object"/>
+        
+        <invoke url="index/testimage.html?lenya.usecase=tab.overview"/>
+        <storeRegEx property="uuid" text="[a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12}"/>
+        
+        <invoke url="index.xml"/>
+        <verifyXPath xpath="//object[@data = 'lenya-document:#{uuid}']"/>
+        
+        <!--
+        <storeXPath property="continuationId" xpath="//input[@name = 'lenya.continuation']/@value"/>
+        
+        <invoke url="index.html" method="POST" contentFile="resources/relativeLinks.txt"/>
         <invoke url="tutorial.html?lenya.usecase=tab.overview"/>
         <storeRegEx property="uuid" text="[a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12}"/>
         <invoke url="index.xml"/>
-        <verifyText text="#{uuid}"/>        
+        <verifyText text="#{uuid}"/>
+        -->
+        
+        
+        
       </steps>
     </webtest>
   </target>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.