| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- $Id$ --> |
| <!-- |
| Copyright 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. |
| --> |
| <mock-test> |
| <context name="c28" root="context28"/> |
| |
| <servlet name="latin1" class="org.apache.tapestry.ApplicationServlet"/> |
| |
| <request> |
| <parameter name="service" value="direct/0/Home/$DirectLink"/> |
| <parameter name="sp"> |
| <value>STwo</value> |
| <value>Ses</value> |
| </parameter> |
| |
| <assert-output name="Page Title"> |
| <![CDATA[ |
| <title>Two</title> |
| ]]> |
| </assert-output> |
| |
| <assert-output name="Charset"> |
| <![CDATA[ |
| charset=ISO-8859-1 |
| ]]> |
| </assert-output> |
| |
| <assert-output name="Language Name"> |
| España |
| </assert-output> |
| </request> |
| |
| |
| <request> |
| <parameter name="service" value="direct/0/Home/$DirectLink"/> |
| <parameter name="sp"> |
| <value>STwo</value> |
| <value>Sfr</value> |
| </parameter> |
| |
| <assert-output name="Page Title"> |
| <![CDATA[ |
| <title>Two</title> |
| ]]> |
| </assert-output> |
| |
| <assert-output name="Charset"> |
| <![CDATA[ |
| charset=ISO-8859-1 |
| ]]> |
| </assert-output> |
| |
| <assert-output name="Language Name"> |
| <![CDATA[ |
| Français |
| ]]> |
| </assert-output> |
| |
| <assert-output name="External Link"> |
| <![CDATA[ |
| <a href="/c28/latin1?service=external/Two&sp=SFran%E7ais"> |
| ]]> |
| </assert-output> |
| </request> |
| |
| |
| </mock-test> |