diff options
Diffstat (limited to 'tests/auto/webchannel/tst_webchannel.cpp')
-rw-r--r-- | tests/auto/webchannel/tst_webchannel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp index 900a6bb..2de34c9 100644 --- a/tests/auto/webchannel/tst_webchannel.cpp +++ b/tests/auto/webchannel/tst_webchannel.cpp @@ -244,6 +244,14 @@ void TestWebChannel::testInvokeMethodConversion() } } +void TestWebChannel::testDisconnect() +{ + QWebChannel channel; + channel.connectTo(m_dummyTransport); + channel.disconnectFrom(m_dummyTransport); + m_dummyTransport->emitMessageReceived(QJsonObject()); +} + static QHash<QString, QObject*> createObjects(QObject *parent) { const int num = 100; |