summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-01-11 10:19:38 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2011-01-11 10:19:38 (GMT)
commit78d6465a6db7e99720adef8e24803e75cbd8dd65 (patch)
treeb9f64e85f8c584ce86f130afdd60c7d3c2611a11 /tests
parent44fa2974a15657aa7e37489670164587311e0007 (diff)
downloadQt-78d6465a6db7e99720adef8e24803e75cbd8dd65.zip
Qt-78d6465a6db7e99720adef8e24803e75cbd8dd65.tar.gz
Qt-78d6465a6db7e99720adef8e24803e75cbd8dd65.tar.bz2
QDeclarativeDebug: Extend autotest
Check that sendMessage doesn't crash if service isn't connected.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
index 30629f9..14efc57 100644
--- a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
+++ b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
@@ -133,6 +133,10 @@ void tst_QDeclarativeDebugService::sendMessage()
client.sendMessage(msg);
QByteArray resp = client.waitForResponse();
QCOMPARE(resp, msg);
+
+ QTest::ignoreMessage(QtWarningMsg, "QDeclarativeDebugService: Conflicting plugin name \"tst_QDeclarativeDebugService::sendMessage()\" ");
+ QDeclarativeDebugService duplicate("tst_QDeclarativeDebugService::sendMessage()");
+ duplicate.sendMessage("msg");
}
void tst_QDeclarativeDebugService::idForObject()