summaryrefslogtreecommitdiff
path: root/testxml/testxml.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-27 03:31:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-27 03:31:20 +0300
commit09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6 (patch)
treeb245659ffb12b1279e6b037759a7a96429756e3e /testxml/testxml.py
parent5eea1d3f604def36f6c700ec519ab459b92cb4ce (diff)
downloadtools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.gz
tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.bz2
tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.tar.xz
tools-09b8781b21b6ed6ccd025d92b6a3aad48d7d34f6.zip
testxml: add repeat attribute checking.
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-xtestxml/testxml.py8
1 files changed, 6 insertions, 2 deletions
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: