summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_configdialog.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. ↵Miss Islington (bot)2017-09-151-0/+1
| | | | | | (GH-3590) (#3591) Enabled by default was a temporary expedient. The fix is to add a user override to enable. (cherry picked from commit d384a81f557dab0b142bfcc9850bc68df46496ef)
* [3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) ↵Miss Islington (bot)2017-09-111-11/+17
| | | | | | | (#3502) Adding to an int entry is not the same as deleting and inserting because int('') will fail. (cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)
* [3.6] bpo-27099: IDLE - Convert built-in extensions to regular features ↵Terry Jan Reedy2017-09-111-9/+34
| | | | | | | | | | | | | | | | | | | | | | | (GH-2494) (#3487) About 10 IDLE features were implemented as supposedly optional extensions. Their different behavior could be confusing or worse for users and not good for maintenance. Hence the conversion. The main difference for users is that user configurable key bindings for builtin features are now handled uniformly. Now, editing a binding in a keyset only affects its value in the keyset. All bindings are defined together in the system-specific default keysets in config- extensions.def. All custom keysets are saved as a whole in config- extension.cfg. All take effect as soon as one clicks Apply or Ok. The affected events are '<<force-open-completions>>', '<<expand-word>>', '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>', '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global) customizations made before 3.6.3 will not affect their keyset- specific customization after 3.6.3. and vice versa. Inital patch by Charles Wohlganger, revised by Terry Jan Reedy. (cherry picked from commit 58fc71c)
* [3.6] bpo-31287: IDLE - do not alter tkinter.messagebox in configdialog ↵Terry Jan Reedy2017-08-271-4/+4
| | | | | tests. (GH-3220) (#3221) (cherry picked from commit 3457f42)
* [3.6] bpo-30781: IDLE - use ttk widgets in configdialog (GH-2654) (#3214)Terry Jan Reedy2017-08-261-30/+31
| | | | Patch by Cheryl Sabella. (cherry picked from commit 7028e59)
* [3.6] bpo-31206: IDLE: Factor HighPage class from ConfigDialog (GH-3156) (#3159)Cheryl Sabella2017-08-201-28/+28
| | | | Patch 2 of 3, to avoid horrendous diff. Create highlights page from new HighPage class instead of old ConfigDialog methods and change tests to match. Patch by Cheryl Sabella. (cherry picked from commit 8f7a798edbdbca9a400105e3225463e59b334666)
* [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3123) ↵Terry Jan Reedy2017-08-181-1/+449
| | | | | (#3124) (cherry picked from commit 82aff62)
* [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) (#3097)Terry Jan Reedy2017-08-151-28/+33
| | | | | | | | | | | | | * bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b) * [3.6] bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (GH-3096) The slightly modified tests continue to pass. Patch by Cheryl Sabella.. (cherry picked from commit e36d9f5568093b3885da62a0bf0fdfbe3771672b)
* [3.6] bpo-31002: IDLE: Add tests for configdialog keys tab (GH-2996) (#3092)Terry Jan Reedy2017-08-151-5/+384
| | | | Patch by Cheryl Sabella. (cherry picked from commit 2f89646)
* [3.6] bpo-31130: IDLE -- stop leaks in test_configdialog. (GH-3016) (#3018)Terry Jan Reedy2017-08-071-38/+48
| | | | Initial patch by Victor Stinner. (cherry picked from commit 733d0f6)
* [3.6] bpo-31050: IDLE: Factor GenPage class from ConfigDialog (GH-2952) (#2955)Terry Jan Reedy2017-07-301-26/+27
| | | | | The slightly modified tests for the General tab continue to pass. Patch by Cheryl Sabella. (cherry picked from commit e8eb17b)
* [3.6] bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) ↵Terry Jan Reedy2017-07-301-28/+40
| | | | | | | | (GH-2905) (#2950) The slightly modified tests continue to pass. The General test broken by the switch to Notebook is fixed. Patch mostly by Cheryl Sabella. (cherry picked from commit 9397e2a)
* [3.6] bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (GH-2938) (#2944)Terry Jan Reedy2017-07-291-6/+10
| | | | | | The notebook looks a bit better. It will work better with separate page classes. Traversal of widgets by Tab works better. Switching tabs with keys becomes possible. The font sample box works better at large font sizes. One of the two simulated click tests no longer works. This will be investigated while fixing a bug with the widget itself. (cherry picked from commit b331f80)
* [3.6] bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (GH-2936) ↵Terry Jan Reedy2017-07-281-11/+18
| | | | | | | (#2937) Add clear method for tests. Adjust tests to use global instance. Remove unneeded ConfigDialog method. (cherry picked from commit 5d0f30a)
* [3.6] bpo-31003: IDLE - Add more tests for General tab (GH-2859) (#2906)Terry Jan Reedy2017-07-271-9/+183
| | | | | | | * In configdialog: Document causal pathways in create_page_general. Move related functions to follow this. Simplify some attribute names. * In test_configdialog: Add tests for load and helplist functions. Coverage for the general tab is now complete, and 63% overall. (cherry picked from commit 2bc8f0e)
* [3.6] bpo-30853: IDLE: Factor a VarTrace class from ↵Terry Jan Reedy2017-07-271-2/+92
| | | | | | | configdialog.ConfigDialog. (GH-2872) (#2903) The new class manages pairs of tk Variables and trace callbacks. It is completely covered by new tests. (cherry picked from commit 45bf723)
* [3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2831) ↵Terry Jan Reedy2017-07-241-81/+108
| | | | | | | | (#2834) In configdialog: Document causal pathways in create_font_tab docstring. Simplify some attribute names. Move set_samples calls to var_changed_font (idea from Cheryl Sabella). Move related functions to positions after the create widgets function. In test_configdialog: Fix test_font_set so not order dependent. Fix renamed test_indent_scale so it tests the widget. Adjust tests for movement of set_samples call. Add tests for load functions. Put all font tests in one class and tab indent tests in another. Except for two lines, these tests completely cover the related functions. (cherry picked from commit 77e97ca)
* [3.6] bpo-30993: IDLE - Improve configdialog font page and tests. (GH-2818) ↵Terry Jan Reedy2017-07-231-8/+12
| | | | | | | | | | (#2826) * Document causal event pathways in docstring. * Simplify some attribute names. * Rename test_bold_toggle_set_samples to make test_font_set fail. * Fix test_font_set so not order dependent. * Fix renamed test_indent_scale so it tests the widget. (cherry picked from commit 07ba305)
* [3.6] bpo-30981: IDLE -- Add more configdialog font page tests. (GH-… (#2796)Terry Jan Reedy2017-07-221-19/+38
| | | | | | | | Verify that clicking the bold checkbutton and calling its command, set_samples, changes the bold setting of both samples. Simplify some names in configdialog. (cherry picked from commit d0969d6) (Incorporates changes and fixes from PRs 2798, 7c5798e, and 2810, 616ecf1) * Fix broken test with PR2798 and PR2810 changes.
* [3.6] bpo-30870: IDLE: Add configdialog fontlist selection unittest ↵terryjreedy2017-07-141-18/+95
| | | | | | (GH-2666) (#2701) Initial patch by Louie Lu. (cherry picked from commit 9b622fb)
* [3.6] bpo-30779: IDLE -- Factor ConfigChanges class from configdialog, put ↵terryjreedy2017-07-071-30/+23
| | | | | | | | | | | | in config; test. (GH-2612) (#2625) * In config, put dump test code in a function; run it and unittest in 'if __name__ == '__main__'. * Add class config.ConfigChanges based on changes_class_v4.py on bpo issue. * Add class test_config.ChangesTest, partly based on configdialog_tests_v1.py on bpo issue. * Revise configdialog to use ConfigChanges, mostly as specified in tracker msg297804. * Revise test_configdialog to match configdialog changes. All tests pass in both files. * Remove configdialog functions unused or moved to ConfigChanges. Cheryl Sabella contributed parts of the patch. (cherry picked from commit 349abd9)
* [3.6] bpo-30780: Fix error in idlelib.test_idle.test_configdialog (GH-2606) ↵terryjreedy2017-07-071-1/+1
| | | | | (#2613) (cherry picked from commit 25a4206)
* [3.6] bpo-30728: IDLE: Refactor configdialog to PEP8 names (GH-2307) (#2421)terryjreedy2017-06-271-18/+22
| | | | | Also, change '*' in the tkinter import to an explicit list of names. Patch by Cheryl Sabella. (cherry picked from commit bac7d33)
* Issue #28572: Use system-specific values for configdialog font testTerry Jan Reedy2016-11-081-8/+12
|
* Issue #28572: Add 10% to coverage of IDLE's test_configdialog.Terry Jan Reedy2016-11-071-18/+111
| | | | Update and augment description of the configuration system.
* Issue #27922: IDLE tests no longer flash tk widgets (Merge 3.5).Terry Jan Reedy2016-09-011-0/+1
|\
| * Issue #27922: IDLE tests no longer flash tk widgets.Terry Jan Reedy2016-09-011-0/+1
| |
* | Refine geometry of idlelib htests (and a few other fix-ups).Terry Jan Reedy2016-07-101-1/+1
| |
* | Issue #27239: idlelib.macosx.isXyzTk functions initialize as needed.Terry Jan Reedy2016-06-081-2/+0
| |
* | Merge: Revise and synchronize idle_test.test_configdialog.Terry Jan Reedy2016-06-041-8/+7
|\ \ | |/
| * Revise and synchronize idle_test.test_configdialog.Terry Jan Reedy2016-06-041-8/+6
| |
* | Merge issue #27196 from 3.5: Stop IDLE test 'application destroyed' warnings.Terry Jan Reedy2016-06-041-3/+3
|\ \ | |/
| * Issue #27196: Stop 'application destroyed' warnings when running IDLE tests.Terry Jan Reedy2016-06-041-4/+5
| | | | | | | | The update_idletasks solution was provided by Serhiy Storchaka.
* | Issue #24225: Within idlelib files, update idlelib module names.Terry Jan Reedy2016-05-281-3/+3
|/ | | | | | | | | | | | | | | | This follows the previous patch that changed idlelib file names. Class names that matched old module names are not changed. Change idlelib imports in turtledemo.__main__. Exception: config-extensions.def. Previously, extension section names, file names, and class names had to match. Changing section names would create cross-version conflicts in config-extensions.cfg (user customizations). Instead map old names to new file names at point of import in editor.EditorWindow.load_extension. Patch extensively tested with test_idle, idle_test.htest.py, a custom import-all test, running IDLE in a console to catch messages, and testing each menu item. Based on a patch by Al Sweigart.
* Issue #27044: stop test_idle from leaking by deleting callbacks.Terry Jan Reedy2016-05-171-0/+1
|
* Issue #21982: Add minimal unittest for configDialog with 46% coverage.Terry Jan Reedy2014-07-151-0/+32
Fix regression that this test would have caught.