wxWidgets/tests/controls
Vadim Zeitlin 75f9a95448 Use [DOMRange markupString] to get selection source.
This DOMRange method, previously used in GetSelectedText(), seems to provide
exactly what we need so there doesn't seem to be any reason to use JS to get
the selection text, especially as it didn't even work under OS X 10.8 and
returned an empty string in the unit test.

The unit test still needs adjustment to pass because we don't get back exactly
the same HTML as we used originally, but with more relaxed matching it does
pass now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-16 14:10:17 +00:00
..
bitmapcomboboxtest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
bitmaptogglebuttontest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
bookctrlbasetest.cpp Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook. 2013-06-23 16:39:39 +00:00
bookctrlbasetest.h No real changes, just simplify wxBookCtrlBase unit test a little. 2013-06-23 16:39:15 +00:00
buttontest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
checkboxtest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
checklistboxtest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
choicebooktest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
choicetest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
comboboxtest.cpp adding exceptions for OSX 2013-06-13 00:08:27 +00:00
dataviewctrltest.cpp adding exceptions for OSX 2013-06-13 00:08:27 +00:00
datepickerctrltest.cpp Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl. 2011-06-19 22:46:45 +00:00
dialogtest.cpp Reconcile HAVE_VARIADIC_MACROS and wxHAS_VARIADIC_MACROS definitions. 2013-07-11 22:40:47 +00:00
frametest.cpp using Destroy, as otherwise the remnants get into the way for some other tests 2013-06-13 00:11:18 +00:00
gaugetest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
gridtest.cpp adding exceptions for OSX 2013-06-13 00:08:27 +00:00
headerctrltest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
htmllboxtest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
hyperlinkctrltest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
itemcontainertest.cpp Keep the item being updated selected in wxMSW wxChoice::SetString(). 2011-12-16 19:47:58 +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 No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
listbasetest.cpp Check wxListCtrl::GetItemRect() origin in the unit tests. 2013-06-13 13:57:51 +00:00
listbasetest.h Merge the new GUI tests from SOC2010_GUI_TEST branch. 2010-08-22 22:16:05 +00:00
listbooktest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
listboxtest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
listctrltest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
listviewtest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
markuptest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
notebooktest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
ownerdrawncomboboxtest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +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 No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
radioboxtest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
radiobuttontest.cpp adding exceptions for OSX 2013-06-13 00:08:27 +00:00
rearrangelisttest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
richtextctrltest.cpp Reset row and columns count in wxRichTextTable::ClearTable(). 2013-05-26 13:14:48 +00:00
searchctrltest.cpp adding exceptions for OSX 2013-06-13 00:08:27 +00:00
simplebooktest.cpp Add a minimal unit test for wxSimplebook. 2013-06-23 16:38:51 +00:00
slidertest.cpp reusing existing API 2013-06-13 14:06:02 +00:00
spinctrldbltest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
spinctrltest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
textctrltest.cpp osx needs a refocus 2013-06-12 21:30:38 +00:00
textentrytest.cpp Fix typo in a closing "#endif" comment in the test. 2013-05-15 13:05:36 +00:00
textentrytest.h Compilation fix: forward declare wxTextEntry in unit tests code. 2010-08-23 18:54:59 +00:00
togglebuttontest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
toolbooktest.cpp No real changes, just simplify wxBookCtrlBase unit test a little. 2013-06-23 16:39:15 +00:00
treebooktest.cpp Provide shorter synonyms for wxEVT_XXX constants. 2013-04-25 10:11:03 +00:00
treectrltest.cpp fixing typo 2013-06-11 22:19:21 +00:00
treelistctrltest.cpp Add new wxTreeListCtrl class. 2011-08-27 14:11:03 +00:00
virtlistctrltest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
webtest.cpp Use [DOMRange markupString] to get selection source. 2013-07-16 14:10:17 +00:00
windowtest.cpp Move getting the unit test event count from wxTestableFrame to the EventCounter class. This reduces the need to have wxTestableFrame pointers all over the unit testing code and should reduce bugs caused by counting the wrong events. 2012-03-11 14:32:24 +00:00