You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by vh...@apache.org on 2014/10/03 11:04:21 UTC
svn commit: r1629150 - in /xmlgraphics/batik/trunk:
sources/org/apache/batik/util/ParsedURL.java
test-resources/org/apache/batik/util/unitTesting.xml
Author: vhennebert
Date: Fri Oct 3 09:04:20 2014
New Revision: 1629150
URL: http://svn.apache.org/r1629150
Log:
Restored regard.util.unitTesting.ParsedURL.1 test case
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java
xmlgraphics/batik/trunk/test-resources/org/apache/batik/util/unitTesting.xml
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java?rev=1629150&r1=1629149&r2=1629150&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/util/ParsedURL.java Fri Oct 3 09:04:20 2014
@@ -534,7 +534,7 @@ public class ParsedURL {
public static ParsedURLData parseURL(String urlStr) {
if (urlStr != null && !urlStr.contains(":") && !urlStr.startsWith("#")) {
// an URL needs a protocol; default to file:// if none set
- urlStr = "file://" + urlStr;
+ urlStr = "file:" + urlStr;
}
ParsedURLProtocolHandler handler = getHandler(getProtocol(urlStr));
return handler.parseURL(urlStr);
Modified: xmlgraphics/batik/trunk/test-resources/org/apache/batik/util/unitTesting.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/test-resources/org/apache/batik/util/unitTesting.xml?rev=1629150&r1=1629149&r2=1629150&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/test-resources/org/apache/batik/util/unitTesting.xml (original)
+++ xmlgraphics/batik/trunk/test-resources/org/apache/batik/util/unitTesting.xml Fri Oct 3 09:04:20 2014
@@ -158,8 +158,8 @@
<!-- ====================================================================== -->
<test id="ParsedURL.1" class="org.apache.batik.util.ParsedURLTest">
<!-- Test simple parsing -->
- <arg class="java.lang.String" value="xml.apache.org" />
- <arg class="java.lang.String" value="//xml.apache.org" />
+ <arg class="java.lang.String" value="just.a.path" />
+ <arg class="java.lang.String" value="file:just.a.path" />
</test>
<test id="ParsedURL.2" class="org.apache.batik.util.ParsedURLTest">
<!-- Test simple parsing -->