[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-javascript-dev
Subject:    [wsf-javascript-dev] svn commit r8119 - in
From:       svn () wso2 ! org (svn () wso2 ! org)
Date:       2007-09-27 23:37:38
Message-ID: E1Ib9Tk-0006qj-8L () wso2 ! org
[Download RAW message or body]

Author: keith
Date: Thu Sep 27 23:37:09 2007
New Revision: 8119

Added:
   trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/E4XMethodTest.java
Modified:
   trunk/wsf/javascript/rhino/e4ximpl/pom.xml
   trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/AxiomNode.java
   trunk/wsf/javascript/rhino/e4ximpl/test-resources/getChildren.js
   trunk/wsf/javascript/rhino/e4ximpl/test/getChildren.js
   trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/GetChildrenTest.java
 Log:
Adding missing license headers



Modified: trunk/wsf/javascript/rhino/e4ximpl/pom.xml
==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/pom.xml	(original)
+++ trunk/wsf/javascript/rhino/e4ximpl/pom.xml	Thu Sep 27 23:37:09 2007
@@ -1,3 +1,19 @@
+<!--
+  ~ Copyright 2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 \
http://maven.apache.org/maven-v4_0_0.xsd">

Modified: trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/AxiomNode.java
 ==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/AxiomNode.java	(original)
                
+++ trunk/wsf/javascript/rhino/e4ximpl/src/org/wso2/javascript/xmlimpl/AxiomNode.java	Thu \
Sep 27 23:37:09 2007 @@ -1,5 +1,5 @@
 /*
-* Copyright 2005,2006 WSO2, Inc. http://wso2.com
+* Copyright 2007 WSO2, Inc. http://wso2.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -397,7 +397,7 @@
                     OMNode prevSibling = refNode.getOMNode().getPreviousOMSibling();
 
                     if (prevSibling == null) {
-                        \
refNode.getParentNode().getOMElement().setFirstChild(nodeToInsert.cloneOMNode()); +   \
                refNode.getOMElement().insertSiblingBefore(nodeToInsert.cloneOMNode());
                
                         \
nodeToInsert.getOMNode().insertSiblingAfter(refNode.getOMNode());  
                     } else {

Modified: trunk/wsf/javascript/rhino/e4ximpl/test-resources/getChildren.js
==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/test-resources/getChildren.js	(original)
+++ trunk/wsf/javascript/rhino/e4ximpl/test-resources/getChildren.js	Thu Sep 27 \
23:37:09 2007 @@ -1,3 +1,19 @@
+/*
+ * Copyright 2007 WSO2, Inc. http://www.wso2.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 var xml = <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
     <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
         <dep:moduleId>

Modified: trunk/wsf/javascript/rhino/e4ximpl/test/getChildren.js
==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/test/getChildren.js	(original)
+++ trunk/wsf/javascript/rhino/e4ximpl/test/getChildren.js	Thu Sep 27 23:37:09 2007
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2007 WSO2, Inc. http://www.wso2.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 var xml = <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
     <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
         <dep:moduleId>

Added: trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/E4XMethodTest.java
 ==============================================================================
--- (empty file)
+++ trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/E4XMethodTest.java	Thu \
Sep 27 23:37:09 2007 @@ -0,0 +1,44 @@
+/*
+ * Copyright 2006,2007 WSO2, Inc. http://www.wso2.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.mozilla.javascript;
+
+import org.wso2.javascript.AbstractTestCase;
+
+public class E4XMethodTest extends AbstractTestCase {
+    /**
+     * @param testName
+     */
+    public E4XMethodTest(String testName) {
+        super(testName);
+    }
+
+    public void setUp() {
+        super.setUp();
+    }
+
+//    public void testAppendChild() {
+//            String command1 = "function testAppendChild(){\n" +
+//                    "var test = <wrapper><item1>1</item1></wrapper>;\n" +
+//                    "test.prependChild(<item0>0</item0>);\n" +
+//                    "return test.toXMLString();\n" +
+//                    "}" ;
+//            Object result = cx.evaluateString(scope, command1, "testAppendChild", \
1, null); +//            Object result2 = cx.evaluateString(scope, \
"testAppendChild();", "testAppendChild", 1, null); +//            \
assertEquals(Integer.parseInt(result2.toString()), 2); +//
+//
+//    }
+}

Modified: trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/GetChildrenTest.java
 ==============================================================================
--- trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/GetChildrenTest.java	(original)
                
+++ trunk/wsf/javascript/rhino/e4ximpl/test/org/mozilla/javascript/GetChildrenTest.java	Thu \
Sep 27 23:37:09 2007 @@ -40,7 +40,7 @@
         try {
             cx.evaluateReader(scope, new FileReader(testFile), scriptName, 1, null);
             String command1 = "xml.*.length();";
-            result = cx.evaluateString(scope, command1, "<cmd>", 1, null);
+            result = cx.evaluateString(scope, command1, scriptName, 1, null);
             assertEquals(Integer.parseInt(result.toString()), 2);
             
         } catch (IOException e) {
@@ -55,7 +55,7 @@
         try {
             cx.evaluateReader(scope, new FileReader(testFile), scriptName, 1, null);
             String command1 = "xml..*.length();";
-            result = cx.evaluateString(scope, command1, "<cmd>", 1, null);
+            result = cx.evaluateString(scope, command1, scriptName, 1, null);
             assertEquals(Integer.parseInt(result.toString()), 44);
 
         } catch (IOException e) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic