From 29bcbcd2cacc9c9dee36fe77b6a297e42bedf6d4 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Mon, 12 Apr 2010 16:32:44 +1000 Subject: Test fix. --- .../declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp b/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp index 7e5c3dd..4155edb 100644 --- a/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp +++ b/tests/auto/declarative/qdeclarativeflipable/tst_qdeclarativeflipable.cpp @@ -116,7 +116,7 @@ void tst_qdeclarativeflipable::setFrontAndBack() void tst_qdeclarativeflipable::QTBUG_9161_crash() { QDeclarativeView *canvas = new QDeclarativeView; - canvas->setSource(QUrl(SRCDIR "/data/crash.qml")); + canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/crash.qml")); QGraphicsObject *root = canvas->rootObject(); QVERIFY(root != 0); canvas->show(); @@ -126,7 +126,7 @@ void tst_qdeclarativeflipable::QTBUG_9161_crash() void tst_qdeclarativeflipable::QTBUG_8474_qgv_abort() { QDeclarativeView *canvas = new QDeclarativeView; - canvas->setSource(QUrl(SRCDIR "/data/flipable-abort.qml")); + canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/flipable-abort.qml")); QGraphicsObject *root = canvas->rootObject(); QVERIFY(root != 0); canvas->show(); -- cgit v0.12