diff options
author | Aurindam Jana <aurindam.jana@nokia.com> | 2011-12-15 17:52:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-16 11:42:57 +0100 |
commit | cac6c2d474ae1bf42de3e8138cda71c9e5391437 (patch) | |
tree | f82ccad3abd269d0dfeaee7671a180e743b10672 /tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp | |
parent | 152a35b027258188bb57db2bafebe5b46d88eb43 (diff) |
DeclarativeDebug: Add version info to service plugins
Send the version info of each plugin alongwith the
plugin names to client.
Change-Id: I223689b32cdc5b0c48a4f508330033352b427937
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp')
-rw-r--r-- | tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp b/tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp index 6754503de9..77a2514c20 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp @@ -66,6 +66,7 @@ private slots: void initTestCase(); void name(); + void version(); void status(); void sendMessage(); void idForObject(); @@ -99,10 +100,18 @@ void tst_QDeclarativeDebugService::name() { QString name = "tst_QDeclarativeDebugService::name()"; - QDeclarativeDebugService service(name); + QDeclarativeDebugService service(name, 1); QCOMPARE(service.name(), name); } +void tst_QDeclarativeDebugService::version() +{ + QString name = "tst_QDeclarativeDebugService::name()"; + + QDeclarativeDebugService service(name, 2); + QCOMPARE(service.version(), 2.0f); +} + void tst_QDeclarativeDebugService::status() { QDeclarativeDebugTestService service("tst_QDeclarativeDebugService::status()"); |