From 09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Apr 2011 03:31:20 +0300 Subject: testxml: add repeat attribute checking. --- testxml/testxml.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'testxml') diff --git a/testxml/testxml.py b/testxml/testxml.py index 75aec68..e1ae4de 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -574,6 +574,10 @@ def testSpriteAction(file, name, action, numframes, iserr): except: showMsgSprite(file, "no sequence start or end index action: " + \ name + ", direction: " + direction, iserr) + try: + repeat = int(sequence.attributes["repeat"].value) + except: + repeat = 1 if i1 >= numframes or i1 < 0: showMsgSprite(file, "incorrect start sequence index " + str(i1) + \ @@ -587,8 +591,8 @@ def testSpriteAction(file, name, action, numframes, iserr): name + ", direction: " + direction, False) if lastIndex1 == i1 and lastIndex2 == i2 and offsetX == lastOffsetX \ - and offsetY == lastOffsetY and i1 == i2 and lastIndex1 == lastIndex2: - showMsgSprite(file, "duplicate sequence animation for start=" \ + and offsetY == lastOffsetY: + showMsgSprite(file, "duplicate sequence animation for. May be need use repeat attribue? start=" \ + str(i1) + ", end=" + str(i2) + " action: " + \ name + ", direction: " + direction, False) else: -- cgit v1.2.3-70-g09d2