Viewing File: /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/htest.cpython-35.opt-2.pyc



]5@s_ddlmZddlmZddlZdddddd	d
iddiZdd
diddiZdddiddiZdddiddiZ	dddddd	d
iddiZ
dddiddiZdddiddiZdddddddddhd	d
idd iZ
dd!ddd"d	d
idd#iZdd$ddd%d&d'd(d)gd	d
idd*iZdd+didd,iZdd-didd.iZdd/didd0iZdd1didd2iZdd3didd4iZdd5didd6iZdd7didd8iZdd9didd:iZdd;didd<iZdd=didd>iZdd?didd@iZddAdiddBiZddCdiddDiZddEdddFdGdHdId	d
iddJiZddKdiddLiZddMdiddNiZddOdiddPiZ ddQdiddRiZ!dSdTZ"e#dUkr[e"dS)V)
import_module)_initializeTkVariantTestsNfileZaboutDialogkwdstitlezaboutDialog testZ_htestTmsgzaTest every button. Ensure Python, TK and IDLE versions are correctly displayed.
 [Close] to exit.Z
CallTipWindowzHTyping '(' should display a calltip.
Typing ') should hide the calltip.
ZClassBrowserzInspect 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.ZColorDelegatorzThe 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.defZconfigDialogZConfigDialogTestaIDLE 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 settingsof 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.ZdynOptionMenuWidgetzSelect 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'.ZEditorWindowz>Test editor functions of interest.
Best to close editor first.ZconfigSectionNameDialogzGet NamemessagezEnter somethingZ
used_namesabczAfter the text entered with [Ok] is stripped, <nothing>, 'abc', or more that 30 chars are errors.
Close 'Get Name' with a valid entry (printed to Shell), [Cancel], or [X]ZconfigHelpSourceEditzGet helpsourcea%Enter menu item name and help file path
 <nothing> and more than 30 chars are invalid menu item names.
<nothing>, file does not exist are invalid path items.
Test for incomplete web address for help file path.
A valid entry will be printed to shell with [0k].
[Cancel] will print None to shellZkeybindingDialogzTest keybindingsactionz
find-againZcurrentKeySequenceszTest 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, spaceis invalid.
No validity checking if advanced key binding entry is used.Z
GrepDialogzClick the 'Show GrepDialog' button.
Test the various 'Find-in-files' functions.
The results should be displayed in a new '*Output*' window.
'Right-click'->'Goto file/line' anywhere in the search results should open that file 
in a new EditorWindow.Z	IOBindingaTest 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	MultiCallaThe 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.ZMultiStatusBarzjEnsure presence of multi-status bar below text area.
Click 'Update Status' to change the multi-status textZ
ObjectBrowserzDouble click on items upto the lowest level.
Attributes of the objects and related information will be displayed side-by-side at each level.ZPathBrowserzTest 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
Percolatora@There are two tracers which can be toggled using a checkbox.
Toggling a tracer 'on' by checking it should print traceroutput 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.Z
ReplaceDialogzClick the 'Replace' button.
Test various replace options in the 'Replace dialog'.
Click [Close] or [X] to close the 'Replace Dialog'.ZSearchDialogzClick the 'Search' button.
Test various search options in the 'Search dialog'.
Click [Close] or [X] to close the 'Search Dialog'.ZScrolledListzYou 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.ZStackViewerzA stacktrace for a NameError exception.
Expand 'idlelib ...' and '<locals>'.
Check that exc_value, exc_tb, and exc_type are correct.
ZtabbedpageszToggle between the two tabs 'foo' and 'bar'
Add a tab by entering a suitable name for it.
Remove an existing tab by entering its name.
Remove all existing tabs.
<nothing> is an invalid add page and remove page name.
ZtextViewz
Test textViewtextz-The quick brown fox jumps over the lazy dog.
#zNTest for read-only property of text.
Text is selectable. Window is scrollable.ZToolTipzPPlace mouse cursor over both the buttons
A tooltip should appear with some text.Z
TreeWidgetzDThe canvas is scrollable.
Click on folders upto to the lowest level.Z
UndoDelegatorzClick [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.
ZWidgetRedirectorzEEvery text insert should be printed to the console.or the IDLE shell.c	stjjdjddttjdd}|jtj|ddjdj	ddd	d
ddd
tj
|dj}jd|j
|jddddddjddddddg|rIx|D]:}t|jd}|j|d<j||fqWnxtjD]q\}}|jdrY|dd&|}|d<td|d}t|}j||fqYWtjdddfdd }fd!d"}	tjd#d|	}
|
jtjd$d%d|j|jdS)'Nz
IDLE htestrZpadx
wrapZwordbgZreliefZflatZheightwidthFZcommandZyscrollcommandZsiderightfillyexpandFleftZbothT_specnamezidlelib.rrcstdkrjj\}|dd<jd|djddjdd	jd|d
jdddS)NrparentzTest rstateZnormalz1.0endrdisabled)lenZpack_forgetpopset	configuredeleteinsert)	test_spec)callable_objectnext_buttonroot	test_kwds	test_list	test_namer
*/opt/alt/python35/lib64/python3.5/htest.pynextts


zrun.<locals>.nextcs6}yt|jWntk
r1YnXdS)N)printresultAttributeError)Zwidget)r)r,r/r0run_tests

zrun.<locals>.run_testZtextvariabler
ZNext)tkZTkrZ	resizablerZFramepackZTextr%ZcgetZ	ScrollbarZyviewconfigr$globals__name__appenditemsendswithrgetattrZ	StringVarZButtonZmainloop)ZtestsZ
frameLabelZ	scrollbarZtestr(kdmodr1r5Zbuttonr/)r)r*r+r,r-r.r
r0runPsJ


+


$

rC__main__)$	importlibrZidlelib.macosxSupportrtkinterr7ZAboutDialog_specZ_calltip_window_specZ_class_browser_specZ_color_delegator_specZConfigDialog_specZ_dyn_option_menu_specZ_editor_window_specZGetCfgSectionNameDialog_specZGetHelpSourceDialog_specZGetKeysDialog_specZ_grep_dialog_specZ_io_binding_specZ_multi_call_specZ_multistatus_bar_specZ_object_browser_specZ_path_browser_specZ_percolator_specZ_replace_dialog_specZ_search_dialog_specZ_scrolled_list_specZshow_idlehelp_specZ_stack_viewer_specZ_tabbed_pages_specZTextViewer_specZ
_tooltip_specZ_tree_widget_specZ_undo_delegator_specZ_widget_redirector_specrCr;r/r/r/r0<module>Ds									
						
	C
Back to Directory File Manager