diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index 0dca25645da..1c00071ad3e 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -85,7 +85,6 @@ void QmlProfilerAnimationsModel::loadEvent(const QmlEvent &event, const QmlEvent lastEvent.typeId = event.typeIndex(); lastEvent.framerate = event.number(0); lastEvent.animationcount = event.number(1); - QTC_ASSERT(lastEvent.animationcount > 0, return); m_data.insert(insert(realStartTime, realEndTime - realStartTime, lastThread), lastEvent); diff --git a/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp index 846ff731d68..d5723dd731a 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofileranimationsmodel_test.cpp @@ -51,7 +51,7 @@ void QmlProfilerAnimationsModelTest::initTestCase() for (int i = 0; i < 10; ++i) { event.setTimestamp(i); - event.setNumbers({frameRate(i), 20 - i, (i % 2) ? RenderThread : GuiThread}); + event.setNumbers({frameRate(i), 9 - i, (i % 2) ? RenderThread : GuiThread}); manager.addEvent(event); } manager.acquiringDone(); @@ -69,8 +69,8 @@ void QmlProfilerAnimationsModelTest::testAccepted() void QmlProfilerAnimationsModelTest::testRowMaxValue() { QCOMPARE(model.rowMaxValue(0), 0); - QCOMPARE(model.rowMaxValue(1), 20); - QCOMPARE(model.rowMaxValue(2), 19); + QCOMPARE(model.rowMaxValue(1), 9); + QCOMPARE(model.rowMaxValue(2), 8); } void QmlProfilerAnimationsModelTest::testRowNumbers() @@ -133,7 +133,7 @@ void QmlProfilerAnimationsModelTest::testDetails() QCOMPARE(details[QmlProfilerAnimationsModel::tr("Framerate")].toString(), QString::fromLatin1("%1 FPS").arg(frameRate(i))); QCOMPARE(details[QmlProfilerAnimationsModel::tr("Animations")].toString(), - QString::number(20 - i)); + QString::number(9 - i)); QCOMPARE(details[QmlProfilerAnimationsModel::tr("Context")].toString(), i % 2 ? QmlProfilerAnimationsModel::tr("Render Thread") : QmlProfilerAnimationsModel::tr("GUI Thread"));