diff options
author | Tal Einat <taleinat+github@gmail.com> | 2019-08-04 16:25:27 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-08-04 16:25:27 (GMT) |
commit | 86f1a18abfee5939452f468d80de998918e2afd2 (patch) | |
tree | 399d2737cec98ab687f2136263ef99d7aad4f131 /Lib/idlelib/idle_test/htest.py | |
parent | 18b711c5a7f90d88fb74748f18fa8ef49d8486c7 (diff) | |
download | cpython-86f1a18abfee5939452f468d80de998918e2afd2.zip cpython-86f1a18abfee5939452f468d80de998918e2afd2.tar.gz cpython-86f1a18abfee5939452f468d80de998918e2afd2.tar.bz2 |
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
Convert mouse y to line number in the sidebar rather than the text.
Diffstat (limited to 'Lib/idlelib/idle_test/htest.py')
-rw-r--r-- | Lib/idlelib/idle_test/htest.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index 6990af5..1373b76 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -210,13 +210,20 @@ _linenumbers_drag_scrolling_spec = { 'file': 'sidebar', 'kwds': {}, 'msg': textwrap.dedent("""\ - Click on the line numbers and drag down below the edge of the + 1. Click on the line numbers and drag down below the edge of the window, moving the mouse a bit and then leaving it there for a while. The text and line numbers should gradually scroll down, with the selection updated continuously. - Do the same as above, dragging to above the window. The text and line + + 2. With the lines still selected, click on a line number above the + selected lines. Only the line whose number was clicked should be + selected. + + 3. Repeat step #1, dragging to above the window. The text and line numbers should gradually scroll up, with the selection updated - continuously."""), + continuously. + + 4. Repeat step #2, clicking a line number below the selection."""), } _multi_call_spec = { |