summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-21 17:49:08 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-07-22 11:51:44 -0300
commit6abeac0c1f5b22a087b618d7ba876c5c73aab792 (patch)
tree9968a12e7d89cca25d99d70418ad401886a68dd1 /tests
parent2535688f04b97cda65f617c226ed4bc2096db0cc (diff)
downloadpyside-6abeac0c1f5b22a087b618d7ba876c5c73aab792.tar.gz
pyside-6abeac0c1f5b22a087b618d7ba876c5c73aab792.tar.xz
pyside-6abeac0c1f5b22a087b618d7ba876c5c73aab792.zip
Update QMetaObject test to test optimization changes.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtCore/qmetaobject_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/QtCore/qmetaobject_test.py b/tests/QtCore/qmetaobject_test.py
index 667e763..2c3b07b 100644
--- a/tests/QtCore/qmetaobject_test.py
+++ b/tests/QtCore/qmetaobject_test.py
@@ -35,9 +35,11 @@ class qmetaobject_test(unittest.TestCase):
o = DynObject()
o2 = QObject()
- method_count_base = o.metaObject().methodCount()
-
o.connect(o2, SIGNAL("bar()"), o.slot)
+ self.assertTrue(o2.metaObject().indexOfMethod("bar()") > -1)
+ self.assertTrue(o.metaObject().indexOfMethod("bar()") == -1)
+ self.assertTrue(o.metaObject().indexOfMethod("slot()") > -1)
+
slot_index = o.metaObject().indexOfMethod("slot()")
o.connect(o, SIGNAL("foo()"), o2, SIGNAL("bar()"))