You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2006/06/25 10:24:28 UTC

svn commit: r416993 - in /cocoon/branches/BRANCH_2_1_X/src: test/htmlunit/org/apache/cocoon/ webapp/samples/test/serializer-html/

Author: antonio
Date: Sun Jun 25 01:24:27 2006
New Revision: 416993

URL: http://svn.apache.org/viewvc?rev=416993&view=rev
Log:
Add testcase for COCOON-1531

Added:
    cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java   (with props)
    cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/
    cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml   (with props)
    cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html   (with props)
    cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap   (with props)

Added: cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java?rev=416993&view=auto
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java (added)
+++ cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java Sun Jun 25 01:24:27 2006
@@ -0,0 +1,36 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ *
+ * 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.apache.cocoon;
+
+/**
+ * Testcase to simulate the behavior of a user that opens a browser and run
+ * HTML Serializer test.
+ *
+ * @version $Id: $
+ */
+public class HtmlSerializerTestCase extends HtmlUnitTestCase {
+
+    final String pageurl = "/samples/test/serializer-html/";
+
+    
+    public void testHtmltSerializer() throws Exception {
+        // Using standard reader
+        loadHtmlPage(pageurl + "/index.html");
+
+        // Using generator a serializer
+        loadHtmlPage(pageurl + "/index1.html");
+    }
+}

Propchange: cocoon/branches/BRANCH_2_1_X/src/test/htmlunit/org/apache/cocoon/HtmlSerializerTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml?rev=416993&view=auto
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml (added)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml Sun Jun 25 01:24:27 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  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.
+-->
+
+<!-- $Id: explain-test.xml 30932 2004-07-29 17:35:38Z vgritsenko $ -->
+
+<page>
+    <title>HTML Serializer test</title>
+    <content>
+        <para>
+            HTML Serializer tests for <link href="http://issues.apache.org/jira/browse/COCOON-1531">COCOON-1531</link>
+            <ul>
+                <li>
+                  Retrive an html page using the standard <link href="index.html">reader</link>
+                </li>
+                <li>
+                  Retrive an html page using <link href="index1.html">generator and html serializer</link>
+                </li>
+            </ul>
+        </para>
+    </content>
+</page>
\ No newline at end of file

Propchange: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/explain-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html?rev=416993&view=auto
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html (added)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html Sun Jun 25 01:24:27 2006
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://cocoon.apache.org/test/namespace/b"
+xmlns:s="http://cocoon.apache.org/test/namespace/s">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>HTML Serializer Test page</title>
+<link title="Default Style" href="/styles/main.css" rel="stylesheet"/>
+</head>
+<body>
+<p>Test page for <a href="http://issues.apache.org/jira/browse/COCOON-1531">COCOON-1531</a></p>
+</body>
+</html>

Propchange: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap?rev=416993&view=auto
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap (added)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap Sun Jun 25 01:24:27 2006
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  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.
+-->
+
+<!-- $Id: sitemap.xmap 230817 2005-08-08 16:48:30Z sylvain $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:components>
+ 
+ </map:components>
+
+  <map:pipelines>
+
+    <map:pipeline>
+
+      <map:match pattern="index.html">
+        <map:read src="index.html"/>
+      </map:match>
+
+      <map:match pattern="index1.html">
+        <map:generate src="index.html"/>
+        <map:serialize type="html"/>
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>
\ No newline at end of file

Propchange: cocoon/branches/BRANCH_2_1_X/src/webapp/samples/test/serializer-html/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native