You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2006/10/17 07:07:12 UTC
svn commit: r464809 -
/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java
Author: jkuhnert
Date: Mon Oct 16 22:07:11 2006
New Revision: 464809
URL: http://svn.apache.org/viewvc?view=rev&rev=464809
Log:
Applied cross platform test patch for line numbers. Fixes TAPESTRY-1118 patch from Ben Sommerville.
Modified:
tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java?view=diff&rev=464809&r1=464808&r2=464809
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/dojo/AjaxShellDelegateTest.java Mon Oct 16 22:07:11 2006
@@ -33,6 +33,8 @@
@Test
public class AjaxShellDelegateTest extends BaseComponentTestCase
{
+ private static final String SYSTEM_NEWLINE= (String)java.security.AccessController.doPrivileged(
+ new sun.security.action.GetPropertyAction("line.separator"));
void trainStaticPath(IEngineService engine, IAsset asset, String path)
{
@@ -83,7 +85,7 @@
"dojo.require(\"dojo.logging.Logger\");\n" +
"dojo.log.setLevel(dojo.log.getLevel(\"WARNING\"));\n" +
"dojo.require(\"tapestry.namespace\")\n" +
- "</script>\n");
+ "</script>" + SYSTEM_NEWLINE);
}
public void test_Debug_Render()
@@ -126,6 +128,6 @@
"dojo.require(\"dojo.debug.console\");\n" +
"dojo.log.setLevel(dojo.log.getLevel(\"DEBUG\"));\n" +
"dojo.require(\"tapestry.namespace\")\n" +
- "</script>\n");
+ "</script>" + SYSTEM_NEWLINE);
}
}