summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlgraphicswebview
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-06 02:59:30 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-06 02:59:55 (GMT)
commitcefc5817a9c39475e55f02922125a66b2a4d515e (patch)
tree1e57692ad9896b580e2abfe78b07c6b51404464c /tests/auto/declarative/qmlgraphicswebview
parent3eb684e909efc9f38f60981a492e0bbd93bc5026 (diff)
downloadQt-cefc5817a9c39475e55f02922125a66b2a4d515e.zip
Qt-cefc5817a9c39475e55f02922125a66b2a4d515e.tar.gz
Qt-cefc5817a9c39475e55f02922125a66b2a4d515e.tar.bz2
basic pixelcache test
Diffstat (limited to 'tests/auto/declarative/qmlgraphicswebview')
-rw-r--r--tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
index 864f4b5..e7e9204 100644
--- a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
+++ b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp
@@ -147,6 +147,11 @@ void tst_qmlgraphicswebview::basicProperties()
QVERIFY(!wv->forwardAction()->isEnabled());
QVERIFY(wv->stopAction());
QVERIFY(!wv->stopAction()->isEnabled());
+
+ wv->setPixelCacheSize(0); // mainly testing that it doesn't crash or anything!
+ QCOMPARE(wv->pixelCacheSize(),0);
+ wv->reloadAction()->trigger();
+ QTRY_COMPARE(wv->progress(), 1.0);
}
void tst_qmlgraphicswebview::historyNav()