summaryrefslogtreecommitdiffstats
path: root/src/dom/work
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2008-05-05 21:11:43 +0000
committerishmal <ishmal@users.sourceforge.net>2008-05-05 21:11:43 +0000
commit9772b0e49b0e62e344588f87b3148a30318b42ce (patch)
treea2d67286cb67c664a8bfdf7d4bf305580fef394e /src/dom/work
parentstruct SPCurve => class SPCurve (diff)
downloadinkscape-9772b0e49b0e62e344588f87b3148a30318b42ce.tar.gz
inkscape-9772b0e49b0e62e344588f87b3148a30318b42ce.zip
Bring testing files up-to-date in preparation to test new svg code.
(bzr r5610)
Diffstat (limited to 'src/dom/work')
-rw-r--r--src/dom/work/testuri.cpp6
-rw-r--r--src/dom/work/testxpath.cpp10
2 files changed, 8 insertions, 8 deletions
diff --git a/src/dom/work/testuri.cpp b/src/dom/work/testuri.cpp
index eed2aba5a..cd412fd51 100644
--- a/src/dom/work/testuri.cpp
+++ b/src/dom/work/testuri.cpp
@@ -10,7 +10,7 @@
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006-2007 Bob Jamison
+ * Copyright (C) 2006-2008 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -32,7 +32,7 @@
typedef org::w3c::dom::URI URI;
-static bool doURI(char *uristr)
+static bool doURI(const char *uristr)
{
org::w3c::dom::URI uri(uristr);
printf("##################################\n");
@@ -56,7 +56,7 @@ static bool test1()
printf("########################################\n");
printf("## TEST 1\n");
printf("########################################\n");
- char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
+ const char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
doURI(uristr);
uristr = "http://www.mit.edu:80";
doURI(uristr);
diff --git a/src/dom/work/testxpath.cpp b/src/dom/work/testxpath.cpp
index 626176920..1014d4742 100644
--- a/src/dom/work/testxpath.cpp
+++ b/src/dom/work/testxpath.cpp
@@ -10,7 +10,7 @@
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006 Bob Jamison
+ * Copyright (C) 2006-2008 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -54,9 +54,9 @@ typedef org::w3c::dom::xpath::XPathParser XPathParser;
typedef struct
{
- char *xpathStr;
- char *desc;
- char *xml;
+ const char *xpathStr;
+ const char *desc;
+ const char *xml;
} XpathTest;
XpathTest xpathTests[] =
@@ -1333,7 +1333,7 @@ NULL,
-bool doStringTest(char *str)
+bool doStringTest(const char *str)
{
XPathParser xp;
xp.setDebug(true);