diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-07-29 11:44:38 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-29 12:02:50 +0200 |
commit | b6a75d831009688b24633d1c0591029ff3cd0d74 (patch) | |
tree | 6e40757ff334442d83d17bebcb78efcb662ad5de | |
parent | 5301551198f15b7393a41aa3585323b7e42a0b1b (diff) | |
download | qtquick1-b6a75d831009688b24633d1c0591029ff3cd0d74.tar.gz |
Fail tst_qdeclarativeborderimage::mirror() on Windows.
As expected. The test was using an invalid URL and thus
successfully comparing 2 empty images.
Task-number: QTBUG-32661
Change-Id: If6f0ad23454673b4b4fb2bc0a73da2b50663f171
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
-rw-r--r-- | tests/auto/declarative/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp b/tests/auto/declarative/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp index f38a95a1..6c2e0312 100644 --- a/tests/auto/declarative/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp +++ b/tests/auto/declarative/qdeclarativeborderimage/tst_qdeclarativeborderimage.cpp @@ -219,7 +219,11 @@ void tst_qdeclarativeborderimage::smooth() void tst_qdeclarativeborderimage::mirror() { - QString componentStr = "import QtQuick 1.0\nBorderImage { source: \"" SRCDIR "/data/heart200.png\"; smooth: true; width: 300; height: 300; border { top: 50; right: 50; bottom: 50; left: 50 } }"; + const QString imagePath = QLatin1String(SRCDIR) + QStringLiteral("/data/heart200.png"); + QVERIFY(QFileInfo(imagePath).exists()); + const QString componentStr = QStringLiteral("import QtQuick 1.0\nBorderImage { source: \"") + + QUrl::fromLocalFile(imagePath).toString() + + QStringLiteral("\"; smooth: true; width: 300; height: 300; border { top: 50; right: 50; bottom: 50; left: 50 } }"); QDeclarativeComponent component(&engine); component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); QDeclarativeBorderImage *obj = qobject_cast<QDeclarativeBorderImage*>(component.create()); |