[Laszlo-checkins] r11935 - openlaszlo/trunk/test/lfc/data

bargull@openlaszlo.org bargull at openlaszlo.org
Sun Nov 30 08:09:22 PST 2008


Author: bargull
Date: 2008-11-30 08:09:10 -0800 (Sun, 30 Nov 2008)
New Revision: 11935

Modified:
   openlaszlo/trunk/test/lfc/data/datadollarpath.lzx
   openlaszlo/trunk/test/lfc/data/datapath.lzx
   openlaszlo/trunk/test/lfc/data/datarepl.lzx
   openlaszlo/trunk/test/lfc/data/dollarpath.lzx
   openlaszlo/trunk/test/lfc/data/repldone.lzx
   openlaszlo/trunk/test/lfc/data/testdatapath.lzx
   openlaszlo/trunk/test/lfc/data/testgetmethod.lzx
   openlaszlo/trunk/test/lfc/data/testgetmethodsolo.lzx
   openlaszlo/trunk/test/lfc/data/testheaderresponse.lzx
   openlaszlo/trunk/test/lfc/data/testpostmethod.lzx
   openlaszlo/trunk/test/lfc/data/testpostmethodsolo.lzx
   openlaszlo/trunk/test/lfc/data/testrawpost-solo.lzx
   openlaszlo/trunk/test/lfc/data/testrawpost.lzx
   openlaszlo/trunk/test/lfc/data/testsetheaders-solo.lzx
   openlaszlo/trunk/test/lfc/data/testsetheaders.lzx
   openlaszlo/trunk/test/lfc/data/testsetpostbody-solo.lzx
   openlaszlo/trunk/test/lfc/data/testsetpostbody.lzx
Log:
Change 20081130-bargull-a72 by bargull at dell--p4--2-53 on 2008-11-30 13:34:17
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: update alldata

New Features:

Bugs Fixed: LPP-7411

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Update deprecated methods to use setAttribute, in detail:
- setDatapath(..) to setAttribute('datapath', ..)
- setQueryType(..) to setAttribute('querytype', ..)
- setPostBody(..) to setAttribute('postbody', ..)
    

Tests:
alldata still passes



Modified: openlaszlo/trunk/test/lfc/data/datadollarpath.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/datadollarpath.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/datadollarpath.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -53,7 +53,7 @@
             assertEquals(  null, a.b.m.dattr );
             assertEquals( '' ,  a.b.n.dattr );
 
-            a.b.setDatapath( 'p' );
+            a.b.setAttribute( 'datapath', 'p' );
             assertEquals( 'ddd' , a.b.m.dattr );
             assertEquals( 'eee' , a.b.n.dattr );
 

Modified: openlaszlo/trunk/test/lfc/data/datapath.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/datapath.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/datapath.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -92,7 +92,7 @@
             assertEquals( et2, collector.ondata[2] );
             this.clearCollected();
 
-            et2.setDatapath( "record[2]/@a" );
+            et2.setAttribute( 'datapath' , "record[2]/@a" );
             assertEquals( 4 , this.collector.ondata.length );
             assertEquals( 2 , this.collector.applyData.length );
             assertEquals( et2, collector.ondata[2] );
@@ -110,7 +110,7 @@
             var et1 = etcRoot.etc1;
 
             Debug.write( p1 );
-            et1.setDatapath( 'data/@foo' );
+            et1.setAttribute( 'datapath' , 'data/@foo' );
             assertEquals ( '55' , et1.data );
             assertEquals( 2 , this.collector.ondata.length );
             assertEquals( 2 , this.collector.applyData.length );

Modified: openlaszlo/trunk/test/lfc/data/datarepl.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/datarepl.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/datarepl.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -70,7 +70,7 @@
         <attribute name="onum" value="1"/>
         <handler name="onclick">
             Debug.write( 'set outer dpath to ' + this.dpaths[ this.onum ] );
-            par.setDatapath( this.dpaths[ this.onum] );
+            par.setAttribute( 'datapath', this.dpaths[ this.onum] );
             this.onum = ++this.onum &lt; 4 ? this.onum : 0;
         </handler>
     </button>

Modified: openlaszlo/trunk/test/lfc/data/dollarpath.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/dollarpath.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/dollarpath.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -111,18 +111,18 @@
                 somedat.getFirstChild().getFirstChild().setNodeName( 'record' );
                 assertEquals( 6, replator.clones.length );
                 var opath = replator.xpath;
-                replator.setDatapath( opath + 'options/glasses/../..' );
+                replator.setAttribute( 'datapath', opath + 'options/glasses/../..' );
                 assertEquals( 4, replator.clones.length );
                 assertEquals( "Hoo" , replator.clones[3].n.getText());
                 assertEquals( 4 , replator.clones[3].pos);
                 assertEquals( 4 , replator.clones[3].cnt);
-                replator.setDatapath( opath );
+                replator.setAttribute( 'datapath', opath );
                 assertEquals( 6, replator.clones.length );
                 assertEquals( "Foo" , replator.clones[3].n.getText());
                 assertEquals( 4 , replator.clones[3].pos);
                 assertEquals( 6 , replator.clones[3].cnt);
-                replator.setDatapath( opath + 
-                                      'options/hairy[@color="red"]/../..' );
+                replator.setAttribute( 'datapath', opath +
+                                            'options/hairy[@color="red"]/../..' );
                 assertEquals( 1, replator.clones.length );
                 somedat.childNodes[0].childNodes[1].childNodes[2].
                             childNodes[0].setAttr( 'color' , 'red' );
@@ -131,7 +131,7 @@
                 somedat.childNodes[0].childNodes[1].childNodes[2].
                             childNodes[0].removeAttr( 'color' );
                 assertEquals( 1, replator.clones.length );
-                replator.setDatapath( opath );
+                replator.setAttribute( 'datapath', opath );
 
                 assertEquals( 6, rpar.repcnt );
 

Modified: openlaszlo/trunk/test/lfc/data/repldone.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/repldone.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/repldone.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -83,9 +83,9 @@
         <attribute name="toggle" value="false"/>
         <handler name="onclick">
             if ( toggle ){
-                rman.setDatapath( "ds1:/top/node" )
+                rman.setAttribute( 'datapath, "ds1:/top/node" );
             } else {
-                rman.setDatapath( " ds2 :/ top  /  xnode " )
+                rman.setAttribute( 'datapath, " ds2 :/ top  /  xnode " );
             }
             this.toggle = !this.toggle;
         </handler>

Modified: openlaszlo/trunk/test/lfc/data/testdatapath.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testdatapath.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testdatapath.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -54,7 +54,7 @@
                 <datatester datapath="nodeb[1]/@color" id="changeme"/>
                 <datatester datapath="nodeb[2]/@color" />
             </view>
-            <button onclick="setme.setDatapath( 'nodea[3]')">
+            <button onclick="setme.setAttribute( 'datapath', 'nodea[3]')">
                 Add datapath
             </button>
         <button >

Modified: openlaszlo/trunk/test/lfc/data/testgetmethod.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testgetmethod.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testgetmethod.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
     <method name="sendit">
       dsget.setQueryParam("address", "67 Clyde Street");
       dsget.setQueryParam("phone", "617-987-1234");
-      dsget.setQueryType("GET");
+      dsget.setAttribute("querytype", "GET");
       dsget.doRequest();
     </method>
 

Modified: openlaszlo/trunk/test/lfc/data/testgetmethodsolo.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testgetmethodsolo.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testgetmethodsolo.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
     <method name="sendit">
       dsgetsolo_.setQueryParam("address", "67 Clyde Street");
       dsgetsolo_.setQueryParam("phone", "617-987-1234");
-      dsgetsolo_.setQueryType("GET");
+      dsgetsolo_.setAttribute("querytype", "GET");
       dsgetsolo_.doRequest();
     </method>
 

Modified: openlaszlo/trunk/test/lfc/data/testheaderresponse.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testheaderresponse.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testheaderresponse.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
 
     <handler name="oninit">
       dsheaders.setHeader("content-type", "application/xml");
-      dsheaders.setQueryType("POST");
+      dsheaders.setAttribute("querytype", "POST");
       dsheaders.doRequest();
     </handler>
 

Modified: openlaszlo/trunk/test/lfc/data/testpostmethod.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testpostmethod.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testpostmethod.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
     <method name="sendit">
       dsget_post_prox.setQueryParam("address", "67 Clyde Street");
       dsget_post_prox.setQueryParam("phone", "617-987-1234");
-      dsget_post_prox.setQueryType("POST");
+      dsget_post_prox.setAttribute("querytype", "POST");
       dsget_post_prox.doRequest();
     </method>
 

Modified: openlaszlo/trunk/test/lfc/data/testpostmethodsolo.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testpostmethodsolo.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testpostmethodsolo.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
     <method name="sendit">
       dsget_post_solo.setQueryParam("address", "67 Clyde Street");
       dsget_post_solo.setQueryParam("phone", "617-987-1234");
-      dsget_post_solo.setQueryType("POST");
+      dsget_post_solo.setAttribute("querytype", "POST");
       dsget_post_solo.doRequest();
     </method>
 

Modified: openlaszlo/trunk/test/lfc/data/testrawpost-solo.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testrawpost-solo.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testrawpost-solo.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -23,7 +23,7 @@
 
     <method name="sendit">
       prdatasolo.setHeader("content-type", "application/xml");
-      prdatasolo.setQueryType("POST");
+      prdatasolo.setAttribute("querytype", "POST");
       prdatasolo.setQueryParam("lzpostbody", "This is posted SOLO data.");
 
      

Modified: openlaszlo/trunk/test/lfc/data/testrawpost.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testrawpost.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testrawpost.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -19,7 +19,7 @@
 
     <method name="sendit">
       prdata.setHeader("content-type", "application/xml");
-      prdata.setQueryType("POST");
+      prdata.setAttribute("querytype", "POST");
       prdata.setQueryParam("lzpostbody", "This is posted data.");
       prdata.doRequest();
     </method>

Modified: openlaszlo/trunk/test/lfc/data/testsetheaders-solo.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testsetheaders-solo.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testsetheaders-solo.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,7 +21,7 @@
     <method name="sendit">
       Debug.write("testsetheaders.lzx sending edata_solo");
       edata_solo.setQueryParam("flash", "has some bugs");
-      edata_solo.setQueryType("POST");
+      edata_solo.setAttribute("querytype", "POST");
 
       edata_solo.setHeader("content-type", "pink-elephants/xml");
       edata_solo.setHeader("my-personal-header", "vanilla/with-chocolate-syrup");

Modified: openlaszlo/trunk/test/lfc/data/testsetheaders.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testsetheaders.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testsetheaders.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -22,7 +22,7 @@
       Debug.write("testsetheaders.lzx sending edata");
       edata.setHeader("content-type", "pink-elephants/xml");
       edata.setQueryParam("flash8", "has bugs");
-      edata.setQueryType("POST");
+      edata.setAttribute("querytype", "POST");
       edata.doRequest();
     </method>
 

Modified: openlaszlo/trunk/test/lfc/data/testsetpostbody-solo.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testsetpostbody-solo.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testsetpostbody-solo.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,8 +21,8 @@
     <method name="sendit"><![CDATA[
       this.xmldat = "<top>This is posted data. <sub>With M&amp;M&apos;s chocolate candies</sub><node>3 &lt; 2 and &gt; 1 </node></top>";
       prdatapb_solo.setHeader("content-type", "application/xml");
-      prdatapb_solo.setQueryType("POST");
-      prdatapb_solo.setPostBody(this.xmldat);
+      prdatapb_solo.setAttribute("querytype", "POST");
+      prdatapb_solo.setAttribute("postbody", this.xmldat);
       prdatapb_solo.doRequest();
       ]]>
     </method>

Modified: openlaszlo/trunk/test/lfc/data/testsetpostbody.lzx
===================================================================
--- openlaszlo/trunk/test/lfc/data/testsetpostbody.lzx	2008-11-30 15:07:20 UTC (rev 11934)
+++ openlaszlo/trunk/test/lfc/data/testsetpostbody.lzx	2008-11-30 16:09:10 UTC (rev 11935)
@@ -21,8 +21,8 @@
     <method name="sendit"><![CDATA[
       this.xmldat = "<top>This is posted data. <sub>With M&amp;M&apos;s chocolate candies</sub><node>3 &lt; 2 and &gt; 1 </node></top>";
       prdatapb.setHeader("content-type", "application/xml");
-      prdatapb.setQueryType("POST");
-      prdatapb.setPostBody(this.xmldat);
+      prdatapb.setAttribute("querytype", "POST");
+      prdatapb.setAttribute("postbody", this.xmldat);
       prdatapb.doRequest();
       ]]>
     </method>



More information about the Laszlo-checkins mailing list