diff options
author | sb <sb@openoffice.org> | 2010-05-14 16:22:06 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-05-14 16:22:06 +0200 |
commit | 40850bb44e1f98e96815a64454efb2236706aec7 (patch) | |
tree | 2944db7cf7b59690a274760aec46385061bf39fc /sw/qa/complex | |
parent | f9c107a9c4a7cea54e6bb133bb92da7e6b4a1d99 (diff) |
sb123: #i111601# various additional test helper functionality
Diffstat (limited to 'sw/qa/complex')
-rw-r--r-- | sw/qa/complex/writer/TestDocument.java | 6 |
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() {} |