diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-20 02:24:50 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-20 02:24:50 +0200 |
commit | 2b79f914ed39a90c3dc5cc7bfb4eec851e580d21 (patch) | |
tree | 4da0c728e80ed1b389656ade23874b10ad887cf2 /testxml/testxml.py | |
parent | f59b83a5980b044c4faa305202f3c2e66565d694 (diff) | |
download | evol-tools-2b79f914ed39a90c3dc5cc7bfb4eec851e580d21.tar.gz evol-tools-2b79f914ed39a90c3dc5cc7bfb4eec851e580d21.tar.bz2 evol-tools-2b79f914ed39a90c3dc5cc7bfb4eec851e580d21.tar.xz evol-tools-2b79f914ed39a90c3dc5cc7bfb4eec851e580d21.zip |
testxml: Add also checking small size of icons in items.xml
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-x | testxml/testxml.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index dcaf25d..474355a 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -74,7 +74,7 @@ def showMsgFile(file, text, iserr): err = "warn: file=" + file + " " + text if err not in errDict: printErr(err) - warnings = warnigs + 1 + warnings = warnings + 1 def showFileMsgById(id, rootDir, fileDir, iserr): @@ -537,7 +537,12 @@ def testImageFile(file, fullPath, sz, iserr): showMsgFile(file, "image size incorrect (" + str(sizes[0]) \ + "x" + str(sizes[1]) + ") should be (" + str(sz) + "x" \ + str(sz) + ")", iserr) - + elif sizes[0] < sz or sizes[1] < sz: + showMsgFile(file, "possible image size incorrect (" + str(sizes[0]) \ + + "x" + str(sizes[1]) + ") should be (" + str(sz) + "x" \ + + str(sz) + ")", False) + + return sizes def testSound(file): |