summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Doffman <mdoff@silver-wind.(none)>2009-04-21 17:16:03 +0100
committerMark Doffman <mdoff@silver-wind.(none)>2009-04-21 17:16:03 +0100
commit44b8c011166f4a17012400fa32bfbe04d8ccde2c (patch)
tree594260a86b286b4114d0765c17788387abbba19a /tests
parent5d030c9b06b2d63e61616058d4bcab3b00421621 (diff)
downloadat-spi2-atk-44b8c011166f4a17012400fa32bfbe04d8ccde2c.tar.gz
2009-04-21 Mark Doffman <mark.doffman@codethink.co.uk>
Mega-commit. Bug fixes coming out of API review and Orca testing.
Diffstat (limited to 'tests')
-rw-r--r--tests/pyatspi/accessibletest.py5
-rw-r--r--tests/pyatspi/componenttest.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/pyatspi/accessibletest.py b/tests/pyatspi/accessibletest.py
index d94e0af..6cd2cdd 100644
--- a/tests/pyatspi/accessibletest.py
+++ b/tests/pyatspi/accessibletest.py
@@ -110,9 +110,10 @@ class AccessibleTest(_PasyTest):
root = self._desktop.getChildAtIndex(0)
attr = root.getAttributes()
res = ["foo:bar", "baz:qux", "quux:corge"]
+ attr.sort()
+ res.sort()
test.assertEqual(attr, res, "Attributes expected %s, recieved %s" % (attr, res))
-
def test_parent(self, test):
root = self._desktop.getChildAtIndex(0)
@@ -151,7 +152,7 @@ class AccessibleTest(_PasyTest):
def test_getRole(self, test):
root = self._desktop.getChildAtIndex(0)
test.assertEqual(root.getRole(), 69,
- "Expected role - \"69\". Recieved - \"%d\"" % (root.getRole(),))
+ "Expected role - \"69\". Recieved - \"%d\"" % (int(root.getRole()),))
def test_getRoleName(self, test):
root = self._desktop.getChildAtIndex(0)
diff --git a/tests/pyatspi/componenttest.py b/tests/pyatspi/componenttest.py
index c6a9253..fe30c88 100644
--- a/tests/pyatspi/componenttest.py
+++ b/tests/pyatspi/componenttest.py
@@ -113,7 +113,7 @@ class ComponentTest(_PasyTest):
layer = comp.getLayer()
test.assertEqual(layer, expected,
"Layer not correct. Expected %d, Recieved %d"
- % (layer, expected))
+ % (int(layer), int(expected)))
def test_getMDIZOrder(self, test):
root = self._desktop.getChildAtIndex(0)