[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/dolphin/src/tests
From: Frank Reininghaus <frank78ac () googlemail ! com>
Date: 2010-11-20 19:13:57
Message-ID: 20101120191357.AF800AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1199137 by freininghaus:
Backup and restore the zoom level in
bug234600_overlappingIconsWhenZooming() such that it's the standard
value again in the following test. Also verify that the zoom level is
as expected after each call to DolphinView::setZoomLevel(int).
M +3 -0 dolphindetailsviewtest.cpp
--- trunk/KDE/kdebase/apps/dolphin/src/tests/dolphindetailsviewtest.cpp \
#1199136:1199137 @@ -237,6 +237,7 @@
// Setting the zoom level to the minimum value and triggering \
DolphinDetailsView::currentChanged(...) // should make sure that the bug is \
triggered. + int zoomLevelBackup = m_view->zoomLevel();
int zoomLevel = ZoomLevelInfo::minimumLevel();
m_view->setZoomLevel(zoomLevel);
@@ -248,11 +249,13 @@
while(zoomLevel < ZoomLevelInfo::maximumLevel()) {
zoomLevel++;
m_view->setZoomLevel(zoomLevel);
+ QCOMPARE(m_view->zoomLevel(), zoomLevel);
//Check for each zoom level that the height of each item is at least the \
icon size.
QVERIFY(detailsView->visualRect(index1).height() >= \
ZoomLevelInfo::iconSizeForZoomLevel(zoomLevel)); }
+ m_view->setZoomLevel(zoomLevelBackup);
m_view->hide();
cleanupTestDir();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic