Author: keith
Date: Sun Apr 20 21:14:25 2008
New Revision: 15864

Log:

Adding documenation to the test scripts



Modified:
   trunk/mashup/java/modules/integration/test-resources/scripts/E4XTest.js

Modified: 
trunk/mashup/java/modules/integration/test-resources/scripts/E4XTest.js
==============================================================================
--- trunk/mashup/java/modules/integration/test-resources/scripts/E4XTest.js     
(original)
+++ trunk/mashup/java/modules/integration/test-resources/scripts/E4XTest.js     
Sun Apr 20 21:14:25 2008
@@ -1,3 +1,4 @@
+addNamespace.documentation="Tests the addNamespace method of the E4X XML 
object";
 function addNamespace(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -8,6 +9,7 @@
        return e;
 }
 
+appendChild.documentation="Tests the appendChild method of the E4X XML object";
 function appendChild(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -17,6 +19,7 @@
        return e;
 }
 
+prependChild.documentation="Tests the prependChild method of the E4X XML 
object";
 function prependChild(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -26,6 +29,7 @@
        return e;
 }
 
+attribute.documentation="Tests the attribute method of the E4X XML object";
 function attribute(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -35,6 +39,7 @@
        return attributeValue;
 }
 
+attributes.documentation="Tests the attributes method of the E4X XML object";
 function attributes(){
        var e = <employees>
                        <employee id="0" 
anotherID="00"><name>Jim</name><age>25</age></employee>
@@ -45,6 +50,7 @@
        return attributeValues;
 }
 
+child1.documentation="Tests the child method of the E4X XML object";
 function child1(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -53,6 +59,7 @@
        return e.child(0);
 }
 
+child2.documentation="Tests the child method of the E4X XML object";
 function child2(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -61,6 +68,7 @@
        return e.child("employee");
 }
 
+childIndex.documentation="Tests the childIndex method of the E4X XML object";
 function childIndex(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -69,6 +77,7 @@
        return e.employee.(name == "Joe").childIndex();
 }
 
+children.documentation="Tests the children method of the E4X XML object";
 function children(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -77,6 +86,7 @@
        return e.employee[0].children();
 }
 
+descendants1.documentation="Tests the descendants method of the E4X XML 
object";
 function descendants1(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -85,6 +95,7 @@
        return e.descendants();
 }
 
+descendants2.documentation="Tests the descendants method of the E4X XML 
object";
 function descendants2(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -93,6 +104,7 @@
        return e.descendants("name");
 }
 
+elements1.documentation="Tests the elements method of the E4X XML object";
 function elements1(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
@@ -101,12 +113,11 @@
        return e.elements();
 }
 
+elements2.documentation="Tests the elements method of the E4X XML object";
 function elements2(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
                        <employee id="1" 
><name>Joe</name><age>20</age></employee>
                </employees>;
        return e.elements("name");
-}
-
-
+}
\ No newline at end of file

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to