summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c9744d6)
raw | patch | inline | side by side (parent: c9744d6)
author | jaspervdg <jaspervdg@users.sourceforge.net> | |
Sat, 19 Jul 2008 11:25:01 +0000 (11:25 +0000) | ||
committer | jaspervdg <jaspervdg@users.sourceforge.net> | |
Sat, 19 Jul 2008 11:25:01 +0000 (11:25 +0000) |
index ec980810b66230ebcf51edd071b5b8338b769b81..4e5788983fe0dd0cb230d3732da37e2e9c78c34c 100644 (file)
}
virtual ~BezierUtilsTest() {}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static BezierUtilsTest *createSuite() { return new BezierUtilsTest(); }
+ static void destroySuite( BezierUtilsTest *suite ) { delete suite; }
+
void testCopyWithoutNansOrAdjacentDuplicates()
{
NR::Point const src[] = {
index ff218ca94d14d7e282ea86c06681636aea92cdbb..15eab65d2541aa6e1272c5b1e51cf99c3093d39c 100644 (file)
--- a/src/helper/units-test.h
+++ b/src/helper/units-test.h
}
virtual ~UnitsTest() {}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static UnitsTest *createSuite() { return new UnitsTest(); }
+ static void destroySuite( UnitsTest *suite ) { delete suite; }
+
void testConversions()
{
struct Case { double x; char const *abbr; double pts; } const tests[] = {
index fbac745ef98b9192db61389947389a714ae321a1..c409759200fe06bfcbb6349d984999190d1daa30 100644 (file)
delete[] mask;
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static NrComposeTest *createSuite() { return new NrComposeTest(); }
+ static void destroySuite( NrComposeTest *suite ) { delete suite; }
+
// FINAL DST SRC
void testnr_R8G8B8A8_N_EMPTY_R8G8B8A8_N()
index 1d407b0e27037652b16d1bf0969e6d3f34ef88c0..295bf4bf3f6fe196fbdc759d437bf2702e60a122 100644 (file)
class CSSOStringStreamTest : public CxxTest::TestSuite
{
public:
+
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static CSSOStringStreamTest *createSuite() { return new CSSOStringStreamTest(); }
+ static void destroySuite( CSSOStringStreamTest *suite ) { delete suite; }
+
void testFloats()
{
css_test_float(4.5, "4.5");
index a8da1315065e9d43720163941d90dcb926c1ac4e..d1a041721b8ee84397058256d232e5d2de525a78 100644 (file)
class StringStreamTest : public CxxTest::TestSuite
{
public:
+
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static StringStreamTest *createSuite() { return new StringStreamTest(); }
+ static void destroySuite( StringStreamTest *suite ) { delete suite; }
+
void testFloats()
{
svg_test_float(4.5, "4.5");
index 7a4c27fb346cc466b92be369d5ad1e27aa85022b..9cc1cc2fb6e51a4c51feae0efa0ee37bb359ffd1 100644 (file)
static test_t const read_scale_tests[3];
static test_t const read_rotate_tests[4];
static test_t const read_skew_tests[3];
- static char const * read_fail_tests[25];
+ static char const * const read_fail_tests[25];
static test_t const write_matrix_tests[2];
static test_t const write_translate_tests[3];
static test_t const write_scale_tests[2];
SvgAffineTest() {
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static SvgAffineTest *createSuite() { return new SvgAffineTest(); }
+ static void destroySuite( SvgAffineTest *suite ) { delete suite; }
+
void testReadIdentity()
{
char const* strs[] = {
{"skewX( 30)",Geom::Matrix(1,0,tan(30.*DEGREE),1,0,0)},
{"skewX(-30)",Geom::Matrix(1,0,tan(-30.*DEGREE),1,0,0)},
{"skewY(390)",Geom::Matrix(1,tan(30.*DEGREE),0,1,0,0)}};
-char const * SvgAffineTest::read_fail_tests[25] = {
+char const * const SvgAffineTest::read_fail_tests[25] = {
"matrix((1,2,3,4,5,6)",
"matrix((1,2,3,4,5,6))",
"matrix(1,2,3,4,5,6))",
index b149b7a447edd12ac218cfcd36d39a310384650a..0636fa32f7feaddcf187b229eac238f0c655aefa 100644 (file)
--- a/src/svg/svg-color-test.h
+++ b/src/svg/svg-color-test.h
rgb24 << 8);
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static SVGColorTest *createSuite() { return new SVGColorTest(); }
+ static void destroySuite( SVGColorTest *suite ) { delete suite; }
+
void testWrite()
{
unsigned const components[] = {0, 0x80, 0xff, 0xc0, 0x77};
index 2345803d86a68d8915a50d91a8deade81e9f557b..829612b26530871b7ab001fcded4cdadc642c5d5 100644 (file)
SvgLengthTest() {
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static SvgLengthTest *createSuite() { return new SvgLengthTest(); }
+ static void destroySuite( SvgLengthTest *suite ) { delete suite; }
+
void testRead()
{
for(size_t i=0; i<G_N_ELEMENTS(absolute_tests); i++) {
index 0f58d662733d53f67e58345a45237716cb0b91d0..28173cbd10118df34d63c498a542d8d1c8509e9d 100644 (file)
--- a/src/svg/svg-path-test.h
+++ b/src/svg/svg-path-test.h
// TODO: Also test some (smooth) cubic/quadratic beziers and elliptical arcs
}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static SvgPathTest *createSuite() { return new SvgPathTest(); }
+ static void destroySuite( SvgPathTest *suite ) { delete suite; }
+
void testReadRectanglesAbsoluteClosed()
{
rectangleBpath[0].code = NR_MOVETO;
index 1c4fe511beac11f6dcb9be7e0434d80315c70d53..08e7cfa4160ccfd40d59cab5f80469eca970ff39 100644 (file)
}
virtual ~ListContainerTest() {}
+// createSuite and destroySuite get us per-suite setup and teardown
+// without us having to worry about static initialization order, etc.
+ static ListContainerTest *createSuite() { return new ListContainerTest(); }
+ static void destroySuite( ListContainerTest *suite ) { delete suite; }
+
void testRangeConstructor()
{
int const values[]={1,2,3,4};
index 7e022eb1821c017a618bc24183d68ae0224c707f..9b0ccf5dadf4ff3fc4a5196bf9e84e381b031125 100644 (file)
#include "repr.h"
#include "event-fns.h"
+int sp_main_gui (int, char const**) { return 0; }
+int sp_main_console (int, char const**) { return 0; }
+
int main(int argc, char *argv[]) {
Inkscape::XML::Document *document;
Inkscape::XML::Node *a, *b, *c, *root;