summaryrefslogtreecommitdiffstats
path: root/testfiles/src
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-03-16 19:08:44 +0000
committerJabiertxof <jtx@jtx>2017-03-16 19:08:44 +0000
commit8330d0ef2b97c73121ead78ea9fbcec6ee01f879 (patch)
tree1b1717d1706ee6ebfecc800f2cc80430eb0450e0 /testfiles/src
parentupdate to trunk (diff)
parentFix rendering when canvas rotated. General code clean-up and documentation. (diff)
downloadinkscape-8330d0ef2b97c73121ead78ea9fbcec6ee01f879.tar.gz
inkscape-8330d0ef2b97c73121ead78ea9fbcec6ee01f879.zip
Update to trunk
(bzr r13645.1.170)
Diffstat (limited to 'testfiles/src')
-rw-r--r--testfiles/src/attributes-test.cpp2
-rw-r--r--testfiles/src/cxxtests-to-migrate/round-test.h91
2 files changed, 2 insertions, 91 deletions
diff --git a/testfiles/src/attributes-test.cpp b/testfiles/src/attributes-test.cpp
index a1b85ff3b..f26a1d351 100644
--- a/testfiles/src/attributes-test.cpp
+++ b/testfiles/src/attributes-test.cpp
@@ -393,6 +393,7 @@ std::vector<AttributeInfo> getKnownAttrs()
AttributeInfo("inkscape:current-layer", true),
AttributeInfo("inkscape:cx", true),
AttributeInfo("inkscape:cy", true),
+ AttributeInfo("inkscape:document-rotation", true),
AttributeInfo("inkscape:document-units", true),
AttributeInfo("inkscape:dstBox", true),
AttributeInfo("inkscape:dstColumn", true),
@@ -460,6 +461,7 @@ std::vector<AttributeInfo> getKnownAttrs()
AttributeInfo("inkscape:window-y", true),
AttributeInfo("inkscape:zoom", true),
AttributeInfo("osb:paint", true),
+ AttributeInfo("sodipodi:arc-type", true),
AttributeInfo("sodipodi:arg1", true),
AttributeInfo("sodipodi:arg2", true),
AttributeInfo("sodipodi:argument", true),
diff --git a/testfiles/src/cxxtests-to-migrate/round-test.h b/testfiles/src/cxxtests-to-migrate/round-test.h
deleted file mode 100644
index 8e9ca69e0..000000000
--- a/testfiles/src/cxxtests-to-migrate/round-test.h
+++ /dev/null
@@ -1,91 +0,0 @@
-
-#ifndef SEEN_ROUND_TEST_H
-#define SEEN_ROUND_TEST_H
-
-#include <cxxtest/TestSuite.h>
-
-#include <vector>
-#include <round.h>
-
-class RoundTest : public CxxTest::TestSuite
-{
-public:
- struct Case {
- double arg0;
- double ret;
- };
-
- std::vector<Case> nonneg_round_cases;
- std::vector<Case> nonpos_round_cases;
-
- RoundTest() :
- TestSuite()
- {
- Case cases[] = {
- { 5.0, 5.0 },
- { 0.0, 0.0 },
- { 5.4, 5.0 },
- { 5.6, 6.0 },
- { 1e-7, 0.0 },
- { 1e7 + .49, 1e7 },
- { 1e7 + .51, 1e7 + 1 },
- { 1e12 + .49, 1e12 },
- { 1e12 + .51, 1e12 + 1 },
- { 1e40, 1e40 }
- };
-
- for ( size_t i = 0; i < G_N_ELEMENTS(cases); i++ )
- {
- nonneg_round_cases.push_back( cases[i] );
-
- Case tmp = {-nonneg_round_cases[i].arg0, -nonneg_round_cases[i].ret};
- nonpos_round_cases.push_back( tmp );
- }
- }
-
- virtual ~RoundTest()
- {
- }
-
- static RoundTest *createSuite() { return new RoundTest(); }
- static void destroySuite( RoundTest *suite ) { delete suite; }
-
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
-
-
-
- void testNonNegRound()
- {
- for ( size_t i = 0; i < nonneg_round_cases.size(); i++ )
- {
- double result = Inkscape::round( nonneg_round_cases[i].arg0 );
- TS_ASSERT_EQUALS( result, nonneg_round_cases[i].ret );
- }
- }
-
- void testNonPosRoung()
- {
- for ( size_t i = 0; i < nonpos_round_cases.size(); i++ )
- {
- double result = Inkscape::round( nonpos_round_cases[i].arg0 );
- TS_ASSERT_EQUALS( result, nonpos_round_cases[i].ret );
- }
- }
-
-};
-
-
-#endif // SEEN_ROUND_TEST_H
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
-