aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-21 17:49:08 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:38 -0300
commita0566f992848f36311f48295c2d8d006802c9b35 (patch)
tree9d753835076ea89aae993269955992c8e2017117 /tests
parent7eae54e157f3b10dc1ce00da1a3253b92a18c4be (diff)
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 667e763ad..2c3b07b10 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()"))