From 36cbf6a62aec4de253e935291bdd33370e7b7faa Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 10 Aug 2015 15:13:09 +0200 Subject: Properly test services arguments for QQmlDebugServer So far we have only tested that each service is still functional when the services: argument is given on the command line. This test checks that services which aren't specified are indeed not loaded. Change-Id: Ica935da0337b2215898f65cf283d6e11365432a8 Reviewed-by: Simon Hausmann --- tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp') diff --git a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp index 70833f5e2c..5d3583a5d2 100644 --- a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp +++ b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp @@ -91,11 +91,16 @@ void tst_QQmlInspector::startQmlsceneProcess(const char * /* qmlFile */, bool re m_connection = new QQmlDebugConnection(); m_client = new QQmlInspectorClient(m_connection); + QList others = m_connection->createOtherClients(); m_connection->connectToHost(QLatin1String("127.0.0.1"), m_process->debugPort()); QVERIFY(m_client); QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled); + foreach (QQmlDebugClient *other, others) + QCOMPARE(other->state(), restrictServices ? QQmlDebugClient::Unavailable : + QQmlDebugClient::Enabled); + qDeleteAll(others); } void tst_QQmlInspector::cleanup() -- cgit v1.2.3