diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-02-11 05:49:46 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-02-11 05:49:46 (GMT) |
commit | 2d37560dd9034d09fcbf94e7b9262bac7d62dff9 (patch) | |
tree | 3810cd7d610f1c3ac99a86d1f37819114b50ab16 /tests | |
parent | b84ee1bd906aebc43b82823426dd01e29b7f5a89 (diff) | |
download | Qt-2d37560dd9034d09fcbf94e7b9262bac7d62dff9.zip Qt-2d37560dd9034d09fcbf94e7b9262bac7d62dff9.tar.gz Qt-2d37560dd9034d09fcbf94e7b9262bac7d62dff9.tar.bz2 |
Fix FontLoader test on Windows.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qmlfontloader/tst_qmlfontloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlfontloader/tst_qmlfontloader.cpp b/tests/auto/declarative/qmlfontloader/tst_qmlfontloader.cpp index 3f85633..19372a0 100644 --- a/tests/auto/declarative/qmlfontloader/tst_qmlfontloader.cpp +++ b/tests/auto/declarative/qmlfontloader/tst_qmlfontloader.cpp @@ -112,7 +112,7 @@ void tst_qmlfontloader::localFont() void tst_qmlfontloader::failLocalFont() { - QString componentStr = "import Qt 4.6\nFontLoader { source: \"" SRCDIR "/data/dummy.ttf\" }"; + QString componentStr = "import Qt 4.6\nFontLoader { source: \"" + QUrl::fromLocalFile(SRCDIR "/data/dummy.ttf").toString() + "\" }"; QTest::ignoreMessage(QtWarningMsg, QString("Cannot load font: QUrl( \"" + QUrl::fromLocalFile(SRCDIR "/data/dummy.ttf").toString() + "\" ) ").toUtf8().constData()); QmlComponent component(&engine); component.setData(componentStr.toLatin1(), QUrl::fromLocalFile("")); |