summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanchors
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2012-02-23 15:05:35 +0200
committerQt by Nokia <qt-info@nokia.com>2012-02-23 14:15:19 +0100
commit06b0abfbcc46a49a0f2196dd6755e384d443d1f6 (patch)
treef838a20daf6efee448733279702d0291dde4dee1 /tests/auto/declarative/qdeclarativeanchors
parenta571fa5b4836e4cbda7027e2dbe9f94f7386b836 (diff)
Windows: Fix tst_qdeclarativeanchors crash.
The test crashed because the test case basicAnchors() uses testFile() function instead of testFileUrl() function to resolve "anchors.qml". All other cases in this test use testFileUrl() to resolve qml files, so changed basicAnchors() test to follow suit. Task-number: QTBUG-24472 Change-Id: Ide73bb27a4a05a4894954170ed204d8b6f60ffe1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeanchors')
-rw-r--r--tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp b/tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp
index 1267563f..ad683b76 100644
--- a/tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp
+++ b/tests/auto/declarative/qdeclarativeanchors/tst_qdeclarativeanchors.cpp
@@ -128,7 +128,7 @@ QGraphicsObject *findObject(QGraphicsObject *parent, const QString &objectName)
void tst_qdeclarativeanchors::basicAnchors()
{
QDeclarativeView *view = new QDeclarativeView;
- view->setSource(testFile("anchors.qml"));
+ view->setSource(testFileUrl("anchors.qml"));
qApp->processEvents();