aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-01 15:27:35 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-01 16:11:16 -0300
commit41e15ab24936095dc8ef2eac6c2bb53c4e4ffe6f (patch)
tree0953f31b894501b8ca8826590f1bd29adba3d960 /tests
parent6ea32275b157bcf3a97725172a06122b4ff98d0a (diff)
Fixed inverted parentship semantics.
The parentship was expressed inverted in the type system and was working because the generator implementation was also screwed. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/typesystem_sample.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index e8e4670b6..9129d31c6 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -75,11 +75,14 @@
</modify-argument>
</modify-function>
<modify-function signature="setParent(ObjectType*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
+ <modify-argument index="this">
+ <parent index="1" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="setLayout(ObjectTypeLayout*)">
+ <modify-argument index="1">
+ <parent index="this" action="add"/>
+ </modify-argument>
<inject-code class="target" position="end">
const ObjectTypeList&amp; objChildren = %CPPSELF.children();
ObjectTypeList::const_iterator it = objChildren.begin();
@@ -101,8 +104,8 @@
</modify-argument>
</modify-function>
<modify-function signature="findChild(const Str&amp;)">
- <modify-argument index="this">
- <parent index="return" action="add"/>
+ <modify-argument index="return">
+ <parent index="this" action="add"/>
</modify-argument>
</modify-function>
<modify-function signature="children()const">