aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp')
-rw-r--r--tests/auto/declarative/debugger/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp11
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()");