관리-도구
편집 파일: htest.cpython-36.opt-2.pyc
3 ��2a�6 � @ s� d dl Zd dlmZ d dlZd dlmZ ej� dddd�dd �Z d i dd �Z di d d �Zdi dd �Zdddd�dd �Z di dd �Zdi dd �Zddddgdd�dd �Zdi dd �Zdd d!ed"hdd#�d$d �Zd%i d&d �Zd'i d(d �Zd)i d*d �Zd+i d,d �Zd-i d.d �Zd/i d0d �Zdd1d2d3dd4�d5d �Zd6i d7d �Zd8i d9d �Zd:i d;d �Zd<i d=d �Zd>i d?d �Zd@i dAd �Z dBi dCd �Z!dDi dEd �Z"dFi dGd �Z#dHdIdJdK ddL�dMd �Z$dNi dOd �Z%dPdQ� Z&e'dRk�r�e&� dS )S� N)� import_module)� ScrollbarZ help_aboutzhelp_about testT)�title�_htestzaTest every button. Ensure Python, TK and IDLE versions are correctly displayed. [Close] to exit.)�file�kwds�msgZ calltip_wz�Typing '(' should display a calltip. Typing ') should hide the calltip. So should moving cursor out of argument area. Force-open-calltip does not work here. Zbrowserz�Inspect names of module, class(with superclass if applicable), methods and functions. Toggle nested items. Double clicking on items prints a traceback for an exception that is ignored.Z colorizerz�The text is sample Python code. Ensure components like comments, keywords, builtins, string, definitions, and break are correctly colored. The default color scheme is in idlelib/config-highlight.defZconfigdialogZConfigDialogTesta� IDLE preferences dialog. In the 'Fonts/Tabs' tab, changing font face, should update the font face of the text in the area below it. In the 'Highlighting' tab, try different color schemes. Clicking items in the sample program should update the choices above it. In the 'Keys', 'General' and 'Extensions' tabs, test settings of interest. [Ok] to close the dialog.[Apply] to apply the settings and and [Cancel] to revert all changes. Re-run the test to ensure changes made have persisted.Z dynoptionz�Select one of the many options in the 'old option set'. Click the button to change the option set. Select one of the many options in the 'new option set'.Zeditorz>Test editor functions of interest. Best to close editor first.Z config_keyzTest keybindingsz find-again� )r �actionZcurrentKeySequencesr z�Test for different key modifier sequences. <nothing> is invalid. No modifier key is invalid. Shift key with [a-z],[0-9], function key, move key, tab, space is invalid. No validity checking if advanced key binding entry is used.Zgrepz�Click the 'Show GrepDialog' button. Test the various 'Find-in-files' functions. The results should be displayed in a new '*Output*' window. 'Right-click'->'Go to file/line' anywhere in the search results should open that file in a new EditorWindow.ZqueryzHelp name and source�test�abc)r Zmenuitem�filepathZ used_namesr aO Enter menu item name and help file path '', > than 30 chars, and 'abc' are invalid menu item names. '' and file does not exist are invalid path items. Any url ('www...', 'http...') is accepted. Test Browse with and without path, as cannot unittest. [Ok] or <Return> prints valid entry to shell [Cancel] or <Escape> prints None to shellZiomenua Test the following bindings. <Control-o> to open file from dialog. Edit the file. <Control-p> to print the file. <Control-s> to save the file. <Alt-s> to save-as another file. <Control-c> to save-copy-as another file. Check that changes were saved by opening the file elsewhere.Z multicalla The following actions should trigger a print to console or IDLE Shell. Entering and leaving the text area, key entry, <Control-Key>, <Alt-Key-a>, <Control-Key-a>, <Alt-Control-Key-a>, <Control-Button-1>, <Alt-Button-1> and focusing out of the window are sequences to be tested.Z statusbarzjEnsure presence of multi-status bar below text area. Click 'Update Status' to change the multi-status textZdebugobjz�Double click on items upto the lowest level. Attributes of the objects and related information will be displayed side-by-side at each level.Zpathbrowserz�Test for correct display of all paths in sys.path. Toggle nested items upto the lowest level. Double clicking on an item prints a traceback for an exception that is ignored.Z percolatoraA There are two tracers which can be toggled using a checkbox. Toggling a tracer 'on' by checking it should print tracer output to the console or to the IDLE shell. If both the tracers are 'on', the output from the tracer which was switched 'on' later, should be printed first Test for actions like text entry, and removal.ZQueryzEnter somethingZGo)r �messageZtext0r z�Enter with <Return> or [Ok]. Print valid entry to Shell Blank line, after stripping, is ignored Close dialog with valid entry, <Escape>, [Cancel], [X]�replacez�Click the 'Replace' button. Test various replace options in the 'Replace dialog'. Click [Close] or [X] to close the 'Replace Dialog'.�searchz�Click the 'Search' button. Test various search options in the 'Search dialog'. Click [Close] or [X] to close the 'Search Dialog'.Z searchbasezKCheck the appearance of the base search dialog Its only action is to close.Zscrolledlistz�You should see a scrollable list of items Selecting (clicking) or double clicking an item prints the name to the console or Idle shell. Right clicking an item will display a popup.�helpzPIf the help text displays, this works. Text is selectable. Window is scrollable.Zstackviewerz�A stacktrace for a NameError exception. Expand 'idlelib ...' and '<locals>'. Check that exc_value, exc_tb, and exc_type are correct. ZtooltipzPPlace mouse cursor over both the buttons A tooltip should appear with some text.ZtreezDThe canvas is scrollable. Click on folders upto to the lowest level.Zundoz�Click [Undo] to undo any action. Click [Redo] to redo any action. Click [Dump] to dump the current state by printing to the console or the IDLE shell. Ztextviewz Test textviewz-The quick brown fox jumps over the lazy dog. �# )r �textr zFTest for read-only property of text. Select text, scroll window, closeZ redirectorzEEvery text insert should be printed to the console or the IDLE shell.c s� t j� ��jd� �jdd� t j�dd�}|j� t j|dd���j�jd�dd d d� t |�j d�}�j|jd � |jdddd� �jdddd� g �| r�x�| D ],}t � |jd }|j|d<