summaryrefslogtreecommitdiffstats
path: root/src/dom/work/testuri.cpp
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-04-22 22:46:00 +0000
committerishmal <ishmal@users.sourceforge.net>2006-04-22 22:46:00 +0000
commit0c25d63a4bbdb5066eb67d56ada67bc5f80c1bac (patch)
tree662a22d1a8f73cc653b1990e8686f63273635085 /src/dom/work/testuri.cpp
parentNative path support (diff)
downloadinkscape-0c25d63a4bbdb5066eb67d56ada67bc5f80c1bac.tar.gz
inkscape-0c25d63a4bbdb5066eb67d56ada67bc5f80c1bac.zip
Native path support
(bzr r572)
Diffstat (limited to 'src/dom/work/testuri.cpp')
-rw-r--r--src/dom/work/testuri.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/dom/work/testuri.cpp b/src/dom/work/testuri.cpp
index 2754af76a..3abb6a574 100644
--- a/src/dom/work/testuri.cpp
+++ b/src/dom/work/testuri.cpp
@@ -71,7 +71,20 @@ static bool test2()
return true;
}
-
+static bool test3()
+{
+ printf("############ windows-style uri.resolve() #######\n");
+ URI absUri("file:C:\\this\\is\\an\\.\\absolute/path.sfx");
+ printf("absUri:%s\n", absUri.getPath().c_str());
+ printf("absUri:%s\n", absUri.getNativePath().c_str());
+ URI relUri("..\\this\\is\\a\\.\\relative\\path.sfx");
+ printf("relUri:%s\n", relUri.getPath().c_str());
+ printf("relUri:%s\n", relUri.getNativePath().c_str());
+ URI resUri = absUri.resolve(relUri);
+ printf("resUri:%s\n", resUri.getPath().c_str());
+ printf("resUri:%s\n", resUri.getNativePath().c_str());
+ return true;
+}
int main(int argc, char **argv)
{
@@ -79,5 +92,7 @@ int main(int argc, char **argv)
return 1;
if (!test2())
return 1;
+ if (!test3())
+ return 1;
return 0;
}