diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-10-16 15:43:36 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-11-17 11:15:57 +0000 |
commit | 435cbb65ef6280f7b8417cb03754765f8289419d (patch) | |
tree | 7ea7b7678e0f30a23a44bbcfdde2ee61cdeac125 /tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml | |
parent | e56df5d505b92de46840d24e84650f92c7c24431 (diff) |
Fix tiling overflow with BorderImage
Switch the geometry to using quint32 indexes if there are too many
tiles.
Change-Id: Idf51210299d14737d0d115104060d32f5754dff7
Task-number: QTBUG-58924
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml')
-rw-r--r-- | tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml index af1b4db0e0..f7e708e7aa 100644 --- a/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml +++ b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml @@ -49,8 +49,8 @@ Item { // imageOnDisk at (0, 0) - (100x100) compare(imageOnDisk.width, 100); compare(imageOnDisk.height, 100); - verify(image.pixel(0, 0) === Qt.rgba(1, 0, 0, 1)); // Use verify because compare doesn't support colors (QTBUG-34878) - verify(image.pixel(99, 99) === Qt.rgba(0, 0, 1, 1)); + compare(image.pixel(0, 0), Qt.rgba(1, 0, 0, 1)); + compare(image.pixel(99, 99), Qt.rgba(0, 0, 1, 1)); // imageOnDiskSmall at (100, 0) - 50x50 compare(imageOnDiskSmall.width, 50); @@ -99,8 +99,8 @@ Item { // imageInCache at (0, 100) - 100x100 compare(imageInCache.width, 100); compare(imageInCache.height, 100); - verify(image.pixel(0, 100) === Qt.rgba(1, 0, 0, 1)); - verify(image.pixel(99, 199) === Qt.rgba(0, 0, 1, 1)); + compare(image.pixel(0, 100), Qt.rgba(1, 0, 0, 1)); + compare(image.pixel(99, 199), Qt.rgba(0, 0, 1, 1)); // imageInCacheSmall at (100, 100) - 50x50 compare(imageInCacheSmall.width, 50); |