summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-05-14 16:22:06 +0200
committersb <sb@openoffice.org>2010-05-14 16:22:06 +0200
commit40850bb44e1f98e96815a64454efb2236706aec7 (patch)
tree2944db7cf7b59690a274760aec46385061bf39fc /sw/qa
parentf9c107a9c4a7cea54e6bb133bb92da7e6b4a1d99 (diff)
sb123: #i111601# various additional test helper functionality
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/complex/writer/TestDocument.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/qa/complex/writer/TestDocument.java b/sw/qa/complex/writer/TestDocument.java
index 8f120385bb79..25a11338ae5c 100644
--- a/sw/qa/complex/writer/TestDocument.java
+++ b/sw/qa/complex/writer/TestDocument.java
@@ -28,13 +28,11 @@
package complex.writer;
import java.io.File;
+import org.openoffice.test.OfficeFileUrl;
final class TestDocument {
public static String getUrl(String name) {
- return new File("testdocuments", name).
- getAbsoluteFile().toURI().toString().replaceFirst(
- "\\A[Ff][Ii][Ll][Ee]:/(?=[^/]|\\z)", "file:///");
- // file:/path -> file:///path
+ return OfficeFileUrl.getAbsolute(new File("testdocuments", name));
}
private TestDocument() {}