Author: apetrelli
Date: Thu Mar 1 01:43:34 2007
New Revision: 513241
URL: http://svn.apache.org/viewvc?view=rev&rev=513241
Log:
TILES-123
Added test code and Selenium test case for locale resolution and localization.
Added:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
(with props)
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
(with props)
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
(with props)
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
(with props)
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
(with props)
tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp (with
props)
tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp (with
props)
tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
(with props)
Modified:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/web.xml
tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp
tiles/framework/trunk/tiles-test/src/test/selenium/TestSuite.html
Added:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java?view=auto&rev=513241
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
(added)
+++
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,80 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.tiles.test.servlet;
+
+import java.io.IOException;
+import java.util.Locale;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+
+import org.apache.tiles.TilesContainer;
+import org.apache.tiles.TilesException;
+import org.apache.tiles.access.TilesAccess;
+import org.apache.tiles.taglib.ComponentConstants;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class SelectLocaleServlet extends HttpServlet {
+
+ @Override
+ protected void doGet(HttpServletRequest request,
+ HttpServletResponse response) throws ServletException, IOException
{
+ process(request, response);
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest request,
+ HttpServletResponse response) throws ServletException, IOException
{
+ // TODO Auto-generated method stub
+ process(request, response);
+ }
+
+ private void process(HttpServletRequest request,
+ HttpServletResponse response) throws ServletException, IOException
{
+ String localeParameter = (String) request.getParameter("locale");
+ HttpSession session = request.getSession();
+ Locale locale = null;
+ if (localeParameter != null && localeParameter.trim().length() > 0) {
+ String[] localeStrings = localeParameter.split("_");
+ if (localeStrings.length == 1) {
+ locale = new Locale(localeStrings[0]);
+ } else if (localeStrings.length == 2) {
+ locale = new Locale(localeStrings[0], localeStrings[1]);
+ } else if (localeStrings.length == 3) {
+ locale = new Locale(localeStrings[0], localeStrings[1],
localeStrings[2]);
+ }
+ }
+ session.setAttribute(ComponentConstants.LOCALE_KEY, locale);
+ TilesContainer container = TilesAccess.getContainer(request
+ .getSession().getServletContext());
+ try {
+ container.render("test.localized.definition", request, response);
+ } catch (TilesException e) {
+ throw new ServletException("Cannot render
'test.localized.definition' definition", e);
+ }
+ }
+}
Propchange:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml?view=diff&rev=513241&r1=513240&r2=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml
(original)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml Thu
Mar 1 01:43:34 2007
@@ -84,5 +84,11 @@
<definition name="testdispatchservlet" extends="test.definition"/>
<definition name="preparer.definition.configured"
extends="preparer.definition"
preparer="org.apache.tiles.test.preparer.TestViewPreparer" />
+
+ <definition name="test.localized.definition" template="/layout.jsp">
+ <put-attribute name="title" value="Default locale" />
+ <put-attribute name="header" value="/header.jsp" />
+ <put-attribute name="body" value="/defaultlocale.jsp" />
+ </definition>
</tiles-definitions>
Added:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml?view=auto&rev=513241
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
(added)
+++
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+ "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation -->
+
+<tiles-definitions>
+ <definition name="test.localized.definition" template="/layout.jsp">
+ <put-attribute name="title" value="British English locale" />
+ <put-attribute name="header" value="/header.jsp" />
+ <put-attribute name="body" value="/defaultlocale.jsp" />
+ </definition>
+
+</tiles-definitions>
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_GB.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml?view=auto&rev=513241
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
(added)
+++
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+ "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation -->
+
+<tiles-definitions>
+ <definition name="test.localized.definition" template="/layout.jsp">
+ <put-attribute name="title" value="American English locale" />
+ <put-attribute name="header" value="/header.jsp" />
+ <put-attribute name="body" value="/defaultlocale.jsp" />
+ </definition>
+
+</tiles-definitions>
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_en_US.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml?view=auto&rev=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
(added)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+ "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation -->
+
+<tiles-definitions>
+ <definition name="test.localized.definition" template="/layout.jsp">
+ <put-attribute name="title" value="French locale" />
+ <put-attribute name="header" value="/header.jsp" />
+ <put-attribute name="body" value="/defaultlocale.jsp" />
+ </definition>
+
+</tiles-definitions>
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_fr.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml?view=auto&rev=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
(added)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+ "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation -->
+
+<tiles-definitions>
+ <definition name="test.localized.definition" template="/layout.jsp">
+ <put-attribute name="title" value="Italian locale" />
+ <put-attribute name="header" value="/header.jsp" />
+ <put-attribute name="body" value="/defaultlocale.jsp" />
+ </definition>
+
+</tiles-definitions>
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/tiles-defs_it.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/web.xml?view=diff&rev=513241&r1=513240&r2=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/web.xml (original)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/WEB-INF/web.xml Thu Mar 1
01:43:34 2007
@@ -85,6 +85,10 @@
<param-value>/layout.jsp</param-value>
</init-param>
</servlet>
+ <servlet>
+ <servlet-name>selectLocaleServlet</servlet-name>
+
<servlet-class>org.apache.tiles.test.servlet.SelectLocaleServlet</servlet-class>
+ </servlet>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
@@ -93,6 +97,11 @@
<servlet-mapping>
<servlet-name>layoutServlet</servlet-name>
<url-pattern>/servlets/layoutServlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>selectLocaleServlet</servlet-name>
+ <url-pattern>/servlets/selectLocaleServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
Added: tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp?view=auto&rev=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp (added)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp Thu Mar
1 01:43:34 2007
@@ -0,0 +1,27 @@
+<%--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+--%>
+<div align="center"><b><i>
+<div id="defaultLocaleMessage">Your default Locale is
<%=request.getLocale().toString() %></div>
+</i></b></div>
+<a href="../selectlocale.jsp">Select another locale</a>
\ No newline at end of file
Propchange: tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tiles/framework/trunk/tiles-test/src/main/webapp/defaultlocale.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp?view=diff&rev=513241&r1=513240&r2=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp (original)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/index.jsp Thu Mar 1
01:43:34 2007
@@ -49,6 +49,7 @@
<a href="testimportattribute_all.jsp">Test importAttribute Tag with no
name</a><br/>
<a href="testdecorationfilter.jsp">Test Tiles Definition Filter</a><br/>
<a href="testdispatchservlet.tiles">Test Tiles Dispatch Servlet</a><br/>
+ <a href="selectlocale.jsp">Test Localization</a><br/>
<h3>Mutable Container Tests</h3>
<a href="testinitcontainer.jsp">Test Initialize Container</a><br/>
Added: tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp?view=auto&rev=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp (added)
+++ tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp Thu Mar
1 01:43:34 2007
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<%--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+--%>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Select your locale</title>
+</head>
+<body>
+<form action="servlets/selectLocaleServlet">
+Select your locale:
+<select name="locale">
+<option selected="selected" value="">Default</option>
+<option value="en_US">American English</option>
+<option value="en_GB">British English</option>
+<option value="fr_FR">French</option>
+<option value="it_IT">Italian</option>
+</select>
+<input type="submit" value="Submit" />
+</form>
+<div id="defaultLocaleMessage">Your default Locale is
<%=request.getLocale().toString() %></div>
+</body>
+</html>
\ No newline at end of file
Propchange: tiles/framework/trunk/tiles-test/src/main/webapp/selectlocale.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Added: tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html?view=auto&rev=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
(added)
+++ tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
Thu Mar 1 01:43:34 2007
@@ -0,0 +1,142 @@
+<!--
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ *
+ */
+-->
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Put Tag Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Localization Test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/tiles-test/index.jsp</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Test Localization</td>
+ <td></td>
+</tr>
+<tr>
+ <td>storeText</td>
+ <td>defaultLocaleMessage</td>
+ <td>localeMessage</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//[EMAIL PROTECTED]'Submit']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertText</td>
+ <td>defaultLocaleMessage</td>
+ <td>${localeMessage}</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Select another locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=American English</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//[EMAIL PROTECTED]'Submit']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>American English locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Select another locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=British English</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//[EMAIL PROTECTED]'Submit']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>British English locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Select another locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=French</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//[EMAIL PROTECTED]'Submit']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>French locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Select another locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=Italian</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//[EMAIL PROTECTED]'Submit']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>Italian locale</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Propchange:
tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/test/selenium/LocalizationTest.html
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: tiles/framework/trunk/tiles-test/src/test/selenium/TestSuite.html
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/test/selenium/TestSuite.html?view=diff&rev=513241&r1=513240&r2=513241
==============================================================================
--- tiles/framework/trunk/tiles-test/src/test/selenium/TestSuite.html (original)
+++ tiles/framework/trunk/tiles-test/src/test/selenium/TestSuite.html Thu Mar
1 01:43:34 2007
@@ -71,6 +71,9 @@
<td><a href="PutListTagTest.html">Put List Tag Test</a></td>
</tr>
<tr>
+ <td><a href="LocalizationTest.html">Localization Test</a></td>
+ </tr>
+ <tr>
<td><a href="ImportAttributeTagTest.html">Import Attribute Tag
Test</a></td>
</tr>
<tr>