diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-13 17:05:21 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-13 17:05:21 +0000 |
| commit | 7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b (patch) | |
| tree | 9d1d189db1903a66496f26d8964e8713ee3d78d6 /src/object-test.h | |
| parent | Fixed bugs pointed by su_v. (diff) | |
| parent | Really add new text-decoration properties. (diff) | |
| download | inkscape-7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b.tar.gz inkscape-7b00e5ffe385b53d5b95ebfcc63b0dc54f892a3b.zip | |
update to trunk
(bzr r13682.1.7)
Diffstat (limited to 'src/object-test.h')
| -rw-r--r-- | src/object-test.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/object-test.h b/src/object-test.h index 77e9afa86..d6a9dbbd3 100644 --- a/src/object-test.h +++ b/src/object-test.h @@ -95,6 +95,30 @@ public: SPGroup *group = dynamic_cast<SPGroup *>(doc->getObjectById("G")); testGrouping(group); + + // Test parent behavior + SPObject *child = root->firstChild(); + assert(child != NULL); + TS_ASSERT(child->parent == root); + TS_ASSERT(child->document == doc); + TS_ASSERT(root->isAncestorOf(child)); + + // Test list behavior + SPObject *next = child->getNext(); + SPObject *prev = next; + TS_ASSERT(next->getPrev() == child); + prev = next; + next = next->getNext(); + while (next != NULL) { + // Walk the list + TS_ASSERT(next->getPrev() == prev); + prev = next; + next = next->getNext(); + } + TS_ASSERT(child->lastChild() == next); + + // Test hrefcount + TS_ASSERT(path->isReferenced()); } void testClones(SPPath *path) |
