diff options
Diffstat (limited to 'tests/samplebinding/objecttype_test.py')
-rw-r--r-- | tests/samplebinding/objecttype_test.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/samplebinding/objecttype_test.py b/tests/samplebinding/objecttype_test.py index 6e24ba9..57947e8 100644 --- a/tests/samplebinding/objecttype_test.py +++ b/tests/samplebinding/objecttype_test.py @@ -86,6 +86,20 @@ class ObjectTypeTest(unittest.TestCase): shiboken.invalidate(parent) + def testNextInFocusChainCycleList(self): + '''As above but in for a list of objects''' + parents = [] + children = [] + focus_chains = [] + for i in range(10): + parent = ObjectType() + child = ObjectType(parent) + next_focus = child.nextInFocusChain() + parents.append(parent) + children.append(child) + focus_chains.append(next_focus) + + shiboken.invalidate(parents) + if __name__ == '__main__': unittest.main() - |