diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-01-11 10:19:38 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-01-11 10:19:38 (GMT) |
commit | 78d6465a6db7e99720adef8e24803e75cbd8dd65 (patch) | |
tree | b9f64e85f8c584ce86f130afdd60c7d3c2611a11 /tests/auto/declarative/qdeclarativedebugservice | |
parent | 44fa2974a15657aa7e37489670164587311e0007 (diff) | |
download | Qt-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/auto/declarative/qdeclarativedebugservice')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp | 4 |
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() |