summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
index 543ba3f..c244030 100644
--- a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
+++ b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
@@ -90,8 +90,8 @@ static QString strippedHtml(QString html)
static QString fileContents(const QString& filename)
{
QFile file(filename);
- Q_ASSERT(file.open(QIODevice::ReadOnly));
- return file.readAll();
+ file.open(QIODevice::ReadOnly);
+ return QString::fromUtf8(file.readAll());
}