wxwidgets/tests
Vadim Zeitlin c24dddc462 Return empty rectangle from GetItemRect() for collapsed items
GetItemByRow() returned a valid row even for an item which was collapsed
which is clearly inappropriate for its use in GetItemRect(), which is
supposed return an invalid rectangle if the item is not visible. It also
might be inappropriate in other cases, but this is not totally clear and
it seems like it is supposed to return a valid row even for collapsed
items at least sometimes, so just make its behaviour conditional by
adding a new flags parameter to GetItemRect() and to Walker() helper
used by it itself, so that it could skip over collapsed items.

Update the test to show that it succeeds now even when the item is
present in the tree, as it only passed before because the item had never
been expanded at all, and so wasn't really present in the tree
structure and the updated test would have failed without the changes to
the code in this commit.
2020-10-19 01:31:14 +02:00
..
any Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
archive Remove BCC-specific conditionally compiled code 2020-10-13 18:40:31 +02:00
arrays Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
base64 Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
benchmarks Remove BCC make and project files 2020-10-13 18:54:01 +02:00
cmdline Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
config Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
controls Return empty rectangle from GetItemRect() for collapsed items 2020-10-19 01:31:14 +02:00
datetime Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
drawing Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
events Remove trailing whitespace 2020-10-15 19:50:37 +02:00
exec Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
file Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
filekind Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
filename Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
filesys Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
font Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fontmap Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
formatconverter Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fswatcher Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fuzz Fix harmless warning about multiline comment in fuzzer runner 2020-05-02 03:38:28 +02:00
geometry Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
graphics Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
hashes Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
html Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
image Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
interactive Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
intl Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
lists Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
log Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
longlong Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
mbconv Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
menu Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
misc Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
net Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
persistence Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
regex Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
rowheightcache Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
scopeguard Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
sizers Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
streams Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
strings Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
textfile Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
thread Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
toplevel Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
uris Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
validators Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
vectors Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
weakref Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
window Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
xlocale Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
xml Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
allheaders.cpp Pre-include another header for Cygwin 2020-09-13 08:27:45 -07:00
allheaders.h Deprecate wxTransformMatrix to prepare for its removal later 2020-10-16 02:03:38 +02:00
asserthelper.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
asserthelper.h Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
descrip.mms Update other test build files by hand for the new STC test 2019-03-20 17:07:56 -05:00
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.tga
horse.tif
horse.xpm Convert all XPM files to Unix EOLs. 2015-03-19 21:46:05 +01:00
makefile.gcc Fix running new wxImage::Paste() unit tests from build directory 2020-10-06 00:37:56 +02:00
Makefile.in Fix running new wxImage::Paste() unit tests from build directory 2020-10-06 00:37:56 +02:00
makefile.vc Fix running new wxImage::Paste() unit tests from build directory 2020-10-06 00:37:56 +02:00
runtests.bat Don't use "-t" option when running tests any longer 2017-11-02 01:53:29 +01:00
test.bkl Fix running new wxImage::Paste() unit tests from build directory 2020-10-06 00:37:56 +02:00
test.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
test.vcxproj Rename manifests to use underscores 2019-12-13 21:44:26 +01:00
test.vcxproj.filters Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_gui.vcxproj Add unit tests of coordinates conversion functions 2020-09-26 01:43:20 +02:00
test_gui.vcxproj.filters Add unit tests of coordinates conversion functions 2020-09-26 01:43:20 +02:00
test_gui_vc10.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc11.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc12.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc14.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc15.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_vc7_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc7_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc7_test_gui.vcproj Add unit tests of coordinates conversion functions 2020-09-26 01:43:20 +02:00
test_vc8_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc8_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc8_test_gui.vcproj Add unit tests of coordinates conversion functions 2020-09-26 01:43:20 +02:00
test_vc9_test.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_allheaders.vcproj Update the version to 3.1.5 2020-07-23 16:25:39 +02:00
test_vc9_test_drawing.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_drawingplugin.vcproj Rebake with bakefile 0.2.12 2020-05-02 17:02:36 +02:00
test_vc9_test_gui.vcproj Add unit tests of coordinates conversion functions 2020-09-26 01:43:20 +02:00
test_vc10.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc11.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc12.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc14.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc15.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
testableframe.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
testableframe.h Refactor code waiting for events in the test suite 2019-01-24 22:52:46 +01:00
testdata.fc
testdate.h Include testdate.h before catch.hpp in unit tests 2017-12-02 14:38:19 +01:00
testfile.h Factor out TempFile class and reuse it in other tests 2017-11-05 17:28:24 +01:00
testimage.h Add alpha blending for wxImage::Paste 2020-09-25 01:04:49 +02:00
testprec.h Use wxASCII_STR() on string literals 2020-07-17 17:52:16 +02:00
testwindow.h Make it simpler to write useful tests comparing windows 2020-09-21 15:54:42 +02:00
waitforpaint.h Don't do anything in WaitForPaint class under non-GTK platforms 2019-10-17 22:03:44 +02:00