summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-26 01:54:04 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-26 04:15:47 (GMT)
commit93b02976b7c9c3a36cac475c1935622ebc2f1fe1 (patch)
tree7c409125557585a15aa43fa9ce6badbb1bd7baaa /tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
parent46340f1c5f8765276701a2831d6efd45607d8ff5 (diff)
downloadQt-93b02976b7c9c3a36cac475c1935622ebc2f1fe1.zip
Qt-93b02976b7c9c3a36cac475c1935622ebc2f1fe1.tar.gz
Qt-93b02976b7c9c3a36cac475c1935622ebc2f1fe1.tar.bz2
Test, demo, and work-around bug QTBUG-8535
Diffstat (limited to 'tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
index 2634825..6d16056 100644
--- a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
+++ b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
@@ -277,6 +277,8 @@ void tst_qdeclarativewebview::historyNav()
wv->setUrl(QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
QTRY_COMPARE(wv->progress(), 1.0);
QCOMPARE(wv->title(),QString("Forward"));
+ QTRY_COMPARE(wv->icon().width(), 32);
+ QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/forward.png"));
QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/forward.html")), strippedHtml(wv->html()));
QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
QCOMPARE(wv->status(), QDeclarativeWebView::Ready);