summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5798fe)
raw | patch | inline | side by side (parent: c5798fe)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 3 Oct 2009 15:21:18 +0000 (15:21 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 3 Oct 2009 15:21:18 +0000 (15:21 +0000) |
src/svg/svg-path-geom-test.h | patch | blob | history |
index 9a091cb86c762f7fb6a660ba4ccc311f6ba6e569..1a084d5bf86301653d748fc213401e325503d756 100644 (file)
}
void testReadImplicitMoveto() {
- TS_WARN("Currently lib2geom (/libnr) has no way of specifying the difference between '... z M 0,0 L 1,0' and '... z L 1,0', the SVG specification does state that these should be handled differently with respect to markers however, see the description of the 'orient' attribute of the 'marker' element.");
+ TS_WARN("Currently lib2geom (/libnr) has no way of specifying the difference between 'M 0,0 ... z M 0,0 L 1,0' and 'M 0,0 ... z L 1,0', the SVG specification does state that these should be handled differently with respect to markers however, see the description of the 'orient' attribute of the 'marker' element.");
Geom::PathVector pv_good;
pv_good.push_back(Geom::Path(Geom::Point(1,1)));
pv_good.back().append(Geom::LineSegment(Geom::Point(1,1),Geom::Point(2,2)));
TSM_ASSERT(path_str, bpathEqual(pv,pv_good));
}
{ // Test relative version
- char const * path_str = "M 1,1 L 2,2 z L 3,3 z";
+ char const * path_str = "M 1,1 l 1,1 z l 2,2 z";
Geom::PathVector pv = sp_svg_read_pathv(path_str);
TSM_ASSERT(path_str, bpathEqual(pv,pv_good));
}