Update tests according to Steffen Grunds suggestions

This commit is contained in:
Tomas O'Connor
2003-02-25 15:22:08 +00:00
parent 97888e5980
commit 1ea8230d72
6 changed files with 21 additions and 22 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptInfo.java,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change:$Date: 2002-12-10 14:12:41 $
* last change:$Date: 2003-02-25 16:22:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,13 +83,12 @@ public class ScriptInfo extends TestCase {
// Get path to test documents
String rootDocPath = ( String )tParam.get( "DOCPTH" );
System.out.println( "DOCPTH is " + rootDocPath );
rootDocPath = util.utils.getFullTestDocName( "ExampleSpreadSheetLatest.sxc" );
rootDocPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
if ( rootDocPath != null && rootDocPath.length() > 1 ){
// convert all "\\" to "/", necessary for UCB
if ( rootDocPath.indexOf( "\\" ) > 0 ){
rootDocPath = rootDocPath.replace( '\\','/' );
}
rootDocPath = "file://" + rootDocPath;
System.out.println("After processing the path is " + rootDocPath);
// encode the ulr (for UCB)
String encodedPath = URLEncoder.encode( rootDocPath );