diff options
Diffstat (limited to 'tests/auto/webchannel/tst_webchannel.cpp')
-rw-r--r-- | tests/auto/webchannel/tst_webchannel.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp index ece02a8..10baaa3 100644 --- a/tests/auto/webchannel/tst_webchannel.cpp +++ b/tests/auto/webchannel/tst_webchannel.cpp @@ -44,7 +44,6 @@ #include <qwebchannel.h> #include <qwebchannel_p.h> #include <qmetaobjectpublisher_p.h> -#include <qwebsockettransport.h> #include <QtTest> @@ -76,20 +75,6 @@ void TestWebChannel::setVariant(const QVariant &v) m_lastVariant = v; } -void TestWebChannel::testInitWebSocketTransport() -{ - QWebSocketTransport transport; - QSignalSpy initSpy(&transport, SIGNAL(initialized())); - QSignalSpy baseUrlSpy(&transport, SIGNAL(baseUrlChanged(QString))); - - QVERIFY(initSpy.wait()); - QCOMPARE(initSpy.size(), 1); - QCOMPARE(baseUrlSpy.size(), 1); - QCOMPARE(baseUrlSpy.first().size(), 1); - QCOMPARE(transport.baseUrl(), baseUrlSpy.first().first().toString()); - QVERIFY(!transport.baseUrl().isEmpty()); -} - void TestWebChannel::testRegisterObjects() { QWebChannel channel; |