aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-06-21 12:24:38 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-06-21 11:31:40 +0000
commitec77984db9df6bada82a84d08a13ac1b0d6c8a9d (patch)
tree7805f43a6fac9daed10926b21268d025a976ce8b /tests/auto
parent99e181a5434389e13b099592f984a2ff1f3583e1 (diff)
qmltest::item-grabber - fix image paths
When running qmltest::itemgrabber we save grabbed image into the qmltest dir but using this name later as 'source' (relative) url we fail to load image. Task-number: QTBUG-53782 Change-Id: Ibd1f32d8bc13ff155b23491401075638cef16987 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml (renamed from tests/auto/qmltest-blacklist/itemgrabber/tst_itemgrabber.qml)4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qmltest-blacklist/itemgrabber/tst_itemgrabber.qml b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml
index 5d65a1666c..d366b2183a 100644
--- a/tests/auto/qmltest-blacklist/itemgrabber/tst_itemgrabber.qml
+++ b/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml
@@ -107,7 +107,7 @@ Item {
property int callCount: 0;
property bool ready: false;
function handleGrab(result) {
- if (!result.saveToFile("image.png"))
+ if (!result.saveToFile("itemgrabber/image.png"))
print("Error: Failed to save image to disk...");
source = "image.png";
ready = true;
@@ -121,7 +121,7 @@ Item {
y: 0
property bool ready: false;
function handleGrab(result) {
- if (!result.saveToFile("image_small.png"))
+ if (!result.saveToFile("itemgrabber/image_small.png"))
print("Error: Failed to save image to disk...");
source = "image_small.png";
ready = true;