forked from qt-creator/qt-creator
QmlPreview: Fix test
Change-Id: Ida6c406fb17e79ffa8d46d61984584681025db7a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -147,8 +147,9 @@ void QmlPreviewClientTest::testMessageReceived()
|
||||
{
|
||||
QmlDebug::QPacket packet(client.dataStreamVersion());
|
||||
quint16 frames = 58;
|
||||
packet << static_cast<qint8>(QmlPreviewClient::Fps) << frames << 6 << 7 << 8
|
||||
<< frames << 1 << 2 << 3;
|
||||
quint16 one = 1, two = 2, three = 3, six = 6, seven = 7, eight = 8;
|
||||
packet << static_cast<qint8>(QmlPreviewClient::Fps) << frames << six << seven << eight
|
||||
<< frames << one << two << three;
|
||||
client.messageReceived(packet.data());
|
||||
QCOMPARE(numRequests, 1);
|
||||
QCOMPARE(numErrors, 1);
|
||||
|
Reference in New Issue
Block a user