Consider write test for document.execCommand("selectAll"); in WebView. |
|
Issue descriptionFrom the crbug.com/751435 , application developers sometimes need to implement select all functionality, however there is no such WebView api, so developers are trying to implement it in JavaScript with document.execCommand("selectAll"); Consider to write a test so we won't break this kind of usage in WebView and potentially on Chrome for Android.
,
Jan 13 2018
We somewhat test this at FrameSelectionTest::SelectAllPreserveHandle. However we only check that the touch handles were shown and not that the action mode was shown. We have a Java API for Select All but it is for IME. See https://developer.android.com/reference/android/view/inputmethod/InputConnection.html#performContextMenuAction(int). I don't know much about how apps use IME but maybe this could be a solution? |
|
►
Sign in to add a comment |
|
Comment 1 by ctzsm@chromium.org
, Jan 13 2018