]> git.saurik.com Git - wxWidgets.git/commit - tests/controls/webtest.cpp
Use [DOMRange markupString] to get selection source.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Jul 2013 14:10:17 +0000 (14:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Jul 2013 14:10:17 +0000 (14:10 +0000)
commit75f9a954480942d56202ac08274bf1b23141078d
treee6d82ee64033883b1c1c4566ad557bac5a7820b9
parent54889dae199cb509b525b4c911185d16bef3ea2c
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
src/osx/webview_webkit.mm
tests/controls/webtest.cpp