summaryrefslogtreecommitdiffstats
path: root/testfiles
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-11-11 20:04:25 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-11-11 20:04:25 +0000
commit82ed3fe47f267f5d56f011db6ff93e2c755cc146 (patch)
treeca46f6dd96b309f63b310e03f208000fb6496b2f /testfiles
parentpatch for bug 1405292, start clipping with COPY instead of OR so GDI clipping... (diff)
downloadinkscape-82ed3fe47f267f5d56f011db6ff93e2c755cc146.tar.gz
inkscape-82ed3fe47f267f5d56f011db6ff93e2c755cc146.zip
fix test
(bzr r15236)
Diffstat (limited to 'testfiles')
-rw-r--r--testfiles/src/object-set-test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/testfiles/src/object-set-test.cpp b/testfiles/src/object-set-test.cpp
index e98d44e5d..1879777e5 100644
--- a/testfiles/src/object-set-test.cpp
+++ b/testfiles/src/object-set-test.cpp
@@ -374,15 +374,13 @@ TEST_F(ObjectSetTest, SetRemoving) {
TEST_F(ObjectSetTest, Delete) {
//we cannot use the same item as in other tests since it will be freed at the test destructor
- Inkscape::XML::Node *repr = _doc->getReprDoc()->createElement("svg:rect");
- _doc->getRoot()->appendChild(repr);
- SPRect *r1 = dynamic_cast<SPRect*>(_doc->getObjectByRepr(repr));
EXPECT_EQ(_doc->getRoot(), r1->parent);
- set->add(r1);
+ set->add(r1.get());
set->deleteItems();
+ r1.release();
EXPECT_EQ(0, set->size());
- EXPECT_EQ(nullptr, r1->parent);
+ //EXPECT_EQ(nullptr, r1->parent);
}
TEST_F(ObjectSetTest, Ops) {