aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp')
-rw-r--r--tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
index 14a6178b09..d05dfa8496 100644
--- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
+++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
@@ -100,6 +100,7 @@ public:
Creating,
Binding, //running a binding
HandlingSignal, //running a signal handler
+ Javascript,
MaximumRangeType
};
@@ -214,9 +215,16 @@ void QQmlProfilerClient::messageReceived(const QByteArray &message)
case QQmlProfilerClient::FramePaint:
case QQmlProfilerClient::Mouse:
case QQmlProfilerClient::Key:
- case QQmlProfilerClient::StartTrace:
+ break;
case QQmlProfilerClient::EndTrace:
+ case QQmlProfilerClient::StartTrace: {
+ int engineId = -1;
+ if (!stream.atEnd()) {
+ stream >> engineId;
+ QVERIFY(engineId >= 0);
+ }
break;
+ }
default: {
QString failMsg = QString("Unknown event type:") + data.detailType;
QFAIL(qPrintable(failMsg));