Author: ekoneil
Date: Fri Sep 17 11:11:21 2004
New Revision: 46267
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/build.xml
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/tags/formatTags/Begin.jsp
Log:
Fixup for the FormatTags test.
This has been a while in coming. <g>
More on this in a bit into the dev list; this change just specifies a pattern
on a couple of formatDate tags that were picking up the default pattern for the
locale even though they had specifically specified EN and GB / US for the
locales.
Also add a target to the DRT build file that will run the NetUI tests in an
i18n'ed / l10n'ed locale by forcing the VM into:
-Duser.language=NL -Duser.country=BE
This could also be externally configurable but serves the purpose for now.
BB: self
DRT: NetUI pass
Modified: incubator/beehive/trunk/netui/test/webapps/drt/build.xml
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/build.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/build.xml Fri Sep 17
11:11:21 2004
@@ -200,6 +200,13 @@
</ant>
</target>
+ <target name="start.with.shmem.asserts.i18n"
+ description="Start server with asserts enabled for
org.apache.beehive.netui, with debugging enabled, and in a non-US locale for
i18n / l10n testing.">
+ <ant antfile="${runTomcat.ant}" target="start.with.shmem"
inheritAll="false">
+ <property name="java.options"
value="-ea:org.apache.beehive.netui... -Duser.language=NL -Duser.country=BE"/>
+ </ant>
+ </target>
+
<target name="stop" description="Stop server">
<ant antfile="${runTomcat.ant}" target="stop" inheritAll="false"/>
</target>
Modified:
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/tags/formatTags/Begin.jsp
==============================================================================
---
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/tags/formatTags/Begin.jsp
(original)
+++
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/tags/formatTags/Begin.jsp
Fri Sep 17 11:11:21 2004
@@ -89,11 +89,11 @@
<table border="1" cellspacing="0">
<tr><th>US Date</th><td>
<netui:span value="${pageFlow.date}">
- <netui:formatDate language="EN" country = "US"/>
+ <netui:formatDate language="EN" country = "US" pattern="M/dd/yy h:mm a"/>
</netui:span>
</td><th>GB Date</th><td>
<netui:span value="${pageFlow.date}">
- <netui:formatDate language="EN" country = "GB"/>
+ <netui:formatDate language="EN" country = "GB" pattern="M/dd/yy h:mm a"/>
</netui:span>
</td></tr>