wxWidgets/tests/controls
Vadim Zeitlin d383f40e7b Preserve value when changing range of inverted wxSlider in wxMSW.
The logical value of wxSlider was changed when its range was changed in wxMSW
if the slider had wxSL_INVERSE style because the logical value was actually
computed using the range and the actual physical control value and we forgot
to update the latter when changing the range.

Do update it now in SetRange() to fix this.

Also add unit tests checking for this and, more generally, for other
operations with inversed sliders.

Closes #12765.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-13 18:10:02 +00:00
..
bitmapcomboboxtest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
bitmaptogglebuttontest.cpp Add wxHAS_BITMAPTOGGLEBUTTON and test for it in the unit test. 2010-10-01 13:05:36 +00:00
bookctrlbasetest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
bookctrlbasetest.h Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
buttontest.cpp Simplify ButtonTestCase::Bitmap. The old test was not correct as it tested all bitmaps to see if they were valid, however these do not get set by SetBitmap and so the tests only passed if the platform set valid defaults. 2010-09-05 13:31:13 +00:00
checkboxtest.cpp Add wxHAS_3STATE_CHECKBOX symbol. 2010-10-16 18:10:51 +00:00
checklistboxtest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
choicebooktest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
choicetest.cpp Reenable sorting tests for GTK 2010-08-24 17:22:12 +00:00
comboboxtest.cpp Reenable sorting tests for GTK 2010-08-24 17:22:12 +00:00
frametest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
gaugetest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
gridtest.cpp Remove an assert that was not backed up by the documentation and so failed on some platforms but not on others. Re-enable some tests that were disabled in wxGTK as they now pass. 2010-09-23 17:02:08 +00:00
headerctrltest.cpp
htmllboxtest.cpp Add wx(Simple)HtmlListBox unit test. 2010-11-27 11:34:34 +00:00
hyperlinkctrltest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
itemcontainertest.cpp Verify the return value of wxItemContainer::Insert() in the tests. 2010-11-27 11:34:47 +00:00
itemcontainertest.h Add "GTK" prefix to wxChoice::{Dis,En}ableEvents() methods in wxGTK. 2010-10-15 23:46:32 +00:00
label.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
listbasetest.cpp Disable ItemClick() unit test for wxListCtrl under wxMSW. 2010-10-01 13:05:30 +00:00
listbasetest.h Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
listbooktest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
listboxtest.cpp Deselect all items in wxMSW wxListBox when selection is set to -1. 2010-11-23 13:10:54 +00:00
listctrltest.cpp Destroy the in-place edit control in wxGenericListCtrl dtor. 2010-10-05 13:38:05 +00:00
listviewtest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
notebooktest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
pickerbasetest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
pickerbasetest.h Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
pickertest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
radioboxtest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
radiobuttontest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
rearrangelisttest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
richtextctrltest.cpp Disabled wxRTC tests that don't work in wxGTK 2010-10-16 10:24:42 +00:00
slidertest.cpp Preserve value when changing range of inverted wxSlider in wxMSW. 2010-12-13 18:10:02 +00:00
spinctrldbltest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
spinctrltest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
textctrltest.cpp Use "C" locale for locale-dependent part of TextCtrlTestCase. 2010-08-22 23:46:02 +00:00
textentrytest.cpp Add another test for the insertion point position after SetValue(). 2010-11-05 21:37:54 +00:00
textentrytest.h Compilation fix: forward declare wxTextEntry in unit tests code. 2010-08-23 18:54:59 +00:00
togglebuttontest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
toolbooktest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
treebooktest.cpp Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
treectrltest.cpp Add an explicit SetFocus() call to fix wxTreeCtrl unit test. 2010-11-16 22:38:19 +00:00
virtlistctrltest.cpp Avoid asserts due to not overriding OnGetItemText() in VirtListCtrlTestCase. 2010-11-16 22:38:26 +00:00
windowtest.cpp Fix tests compilation with wxUSE_TOOLTIPS==0 as in wxX11. 2010-10-04 10:41:39 +00:00