qt5base-lts/tests/auto
Oliver Wolff 083d2c8bb8 Removed hardcoded values from tst_qgraphicsview::scrollBarRanges
Instead of testing the "windows" and "motif" styles, that test should
actually test the scrollBarRanges for all available styles. To be able
to do that, the magic numbers 16 (width/height of scrollbars) and 4
(spacing for the faux motif style) were replaced and instead of setting
the explicit values in the data the "number of scrollbars/spacings to
add/remove" is saved in a struct and the value of these (depending
on the style) is obtained in the test run.

This change does not also cause the fusion style to also be tested but
also fixes this test for Windows 7 and 8 (Aero) where the scrollbar
width/height is not 16 but 17.

Task-number: QTBUG-28611
Task-number: QTBUG-29002
Change-Id: I5d103018fde81cee6e6e89cd414426768b2dc8e7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-01-09 08:59:26 +01:00
..
bic/data test: Add bic data for linux-gcc-ia32 2013-01-08 19:50:18 +01:00
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
corelib Update qlocale autotest 2013-01-06 14:29:48 +01:00
dbus DBus: Remove declaration of built-in and automatic metatypes. 2013-01-04 13:20:06 +01:00
gui Gui: Remove declaration of built-in and automatic metatypes. 2013-01-04 18:39:08 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Add auto test for HTTP cache fix for QTBUG-28035. 2013-01-08 11:13:27 +01:00
opengl add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
other Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
printsupport Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
testlib Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
tools add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
widgets Removed hardcoded values from tst_qgraphicsview::scrollBarRanges 2013-01-09 08:59:26 +01:00
xml Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
auto.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00