diff options
author | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-07-13 14:15:35 -0300 |
---|---|---|
committer | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-07-13 16:19:57 -0300 |
commit | 95c7699ae37c0c4a10d606405230000cfae99bde (patch) | |
tree | 368ba419f2c0002b8b0758b93588f270047b11b1 /tests/QtCore/qobject_connect_notify_test.py | |
parent | e2056540d55033e8415246c2d17d9750bd30c1f0 (diff) |
Update tests to check native pointers (qchar *, void *, ...).
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/QtCore/qobject_connect_notify_test.py')
-rw-r--r-- | tests/QtCore/qobject_connect_notify_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_connect_notify_test.py b/tests/QtCore/qobject_connect_notify_test.py index 441037585..b87dd4db7 100644 --- a/tests/QtCore/qobject_connect_notify_test.py +++ b/tests/QtCore/qobject_connect_notify_test.py @@ -14,9 +14,11 @@ class Obj(QObject): QObject.__init__(self) self.con_notified = False self.dis_notified = False + self.signal = "" def connectNotify(self, signal): self.con_notified = True + self.signal = signal def disconnectNotify(self, signal): self.dis_notified = True @@ -39,6 +41,7 @@ class TestQObjectConnectNotify(UsesQCoreApplication): receiver = QObject() sender.connect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assert_(sender.con_notified) + self.assertEqual(sender.signal, SIGNAL("destroyed()")) sender.disconnect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assert_(sender.dis_notified) |