summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/datetimeformatter
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-08 03:51:58 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-08 03:51:58 (GMT)
commit8569659ae74091d174fbf55ea3b4897b5a8f477d (patch)
treea9761db66717eb3b8068a67e0dd5a4b3626a3622 /tests/auto/declarative/datetimeformatter
parentac84b4382c4ba5c81ad48c6774ce0dda74cfd83f (diff)
downloadQt-8569659ae74091d174fbf55ea3b4897b5a8f477d.zip
Qt-8569659ae74091d174fbf55ea3b4897b5a8f477d.tar.gz
Qt-8569659ae74091d174fbf55ea3b4897b5a8f477d.tar.bz2
Use QUrl::fromLocalFile() instead of "file://" (i.e. only 2 slashes).
Was causing some test failures on Windows.
Diffstat (limited to 'tests/auto/declarative/datetimeformatter')
-rw-r--r--tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp
index b5437b9..3302cfa 100644
--- a/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp
+++ b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp
@@ -61,7 +61,7 @@ void tst_datetimeformatter::date()
QmlEngine engine;
QmlComponent formatterComponent(&engine);
formatterComponent.setData(QByteArray("import Qt 4.6\n DateTimeFormatter { date: \"2008-12-24\" }"),
- QUrl("file://"));
+ QUrl::fromLocalFile(""));
QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
if(formatterComponent.isError())
qDebug() << formatterComponent.errors();
@@ -90,7 +90,7 @@ void tst_datetimeformatter::time()
{
QmlEngine engine;
QmlComponent formatterComponent(&engine);
- formatterComponent.setData("import Qt 4.6\n DateTimeFormatter { time: \"14:15:38.200\" }", QUrl("file://"));
+ formatterComponent.setData("import Qt 4.6\n DateTimeFormatter { time: \"14:15:38.200\" }", QUrl::fromLocalFile(""));
QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
if(formatterComponent.isError())
qDebug() << formatterComponent.errors();
@@ -123,7 +123,7 @@ void tst_datetimeformatter::dateTime()
{
QmlEngine engine;
QmlComponent formatterComponent(&engine);
- formatterComponent.setData("import Qt 4.6\n DateTimeFormatter { dateTime: \"1978-03-04T09:13:54\" }", QUrl("file://"));
+ formatterComponent.setData("import Qt 4.6\n DateTimeFormatter { dateTime: \"1978-03-04T09:13:54\" }", QUrl::fromLocalFile(""));
QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
if(formatterComponent.isError())
qDebug() << formatterComponent.errors();