summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-11 03:50:48 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-11 03:50:48 (GMT)
commitd5d90d1518f9767874a2a22733ce7753aef328d2 (patch)
treea770883f992479118ba7faed957621647da89ca7 /tests
parent3f095e957f27744c9c7a79679e35bfcc9db161fd (diff)
downloadQt-d5d90d1518f9767874a2a22733ce7753aef328d2.zip
Qt-d5d90d1518f9767874a2a22733ce7753aef328d2.tar.gz
Qt-d5d90d1518f9767874a2a22733ce7753aef328d2.tar.bz2
Don't put necessary code in Q_ASSERT
(test failed in release mode)
Diffstat (limited to 'tests')
-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());
}