Commit 7449aa34 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Enable debugging in failure branches of KisTiledDataManagerTest

parent 471da6fa
......@@ -33,7 +33,7 @@ bool KisTiledDataManagerTest::checkHole(quint8* buffer,
quint8 expectedColor = holeRect.contains(x,y) ? holeColor : backgroundColor;
if(*buffer != expectedColor) {
dbgKrita << "Expected" << expectedColor << "but found" << *buffer;
qDebug() << "Expected" << expectedColor << "but found" << *buffer;
return false;
}
......@@ -57,11 +57,11 @@ bool KisTiledDataManagerTest::checkTilesShared(KisTiledDataManager *srcDM,
: dstDM->getTile(col, row, false);
if(srcTile->tileData() != dstTile->tileData()) {
dbgKrita << "Expected tile data (" << col << row << ")"
qDebug() << "Expected tile data (" << col << row << ")"
<< srcTile->extent()
<< srcTile->tileData()
<< "but found" << dstTile->tileData();
dbgKrita << "Expected" << srcTile->data()[0] << "but found" << dstTile->data()[0];
qDebug() << "Expected" << srcTile->data()[0] << "but found" << dstTile->data()[0];
return false;
}
}
......@@ -83,7 +83,7 @@ bool KisTiledDataManagerTest::checkTilesNotShared(KisTiledDataManager *srcDM,
: dstDM->getTile(col, row, false);
if(srcTile->tileData() == dstTile->tileData()) {
dbgKrita << "Expected tiles not be shared:"<< srcTile->extent();
qDebug() << "Expected tiles not be shared:"<< srcTile->extent();
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment