From cefc5817a9c39475e55f02922125a66b2a4d515e Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Fri, 6 Nov 2009 12:59:30 +1000 Subject: basic pixelcache test --- tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v0.12