403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.220
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/idle_test/__pycache__/test_sidebar.cpython-315.opt-2.pyc
R
>lqj�lc�d�]QHGs]PHs]QHGs]PHs]PHs]QHGsG	s	]QH(Gs]PH0s
]QH8Gs]QH@Gs]QHHGs]PHPs]QHPGsGs]Q	H`GsGsGs]PHps]Q
HpGsGsQQ2sQ
Q\O@2s!QQ\O@2s"\#Q6Xc\OH]Q5P!P!)�)�dedent)�chain)�requires�	swap_attr)�support)�run_in_tk_mainloop)�	Delegator)�
Percolator)�PyShell�PyShellFileList)�fix_scaling�fix_word_breaks�
fix_x11_paste)�get_end_linenumber�
get_linenoc�4`�\sQs]snQsQsQsQsUsP!)�
Dummy_editwinc���VmUOOUm[U2Um[2UmUOOUO2P!�N)�text�master�
text_framer	�perr�undo�insertfilter)�selfrs&&�3C:\Python315\\Lib\idlelib\idle_test\test_sidebar.py�__init__�Dummy_editwin.__init__sC���	��)�)�*�*����d�#����K��	������d�i�i�(�c��P!r�)r�name�values&&&r�setvar�Dummy_editwin.setvars��rc�^�[[UOOU222!r)�int�floatr�index)rr)s&&r�	getlineno�Dummy_editwin.getlineno!s���5�������/�0�1�1r)rrrr)	�__name__�
__module__�__qualname__�__firstlineno__rr$r*�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����)�
�2�2rrc�>`�\sQs]%sn\Q2s\Q2sQsQsQs	Qs
QsQsQ	s
Q
sQsQsQ
sQsQsQs\O,Q2Q2sQs\O,Q2Q2s\O,Q2Q2sQsQsQsQsUsP!)�LineNumbersTestc��[Q2[O2UmUOO	2[O
UO2UmUOO[O[OP	Q5UOO]]Q5UOO]]Q5[OUO]P][OQ5UmUOO]][O Q5[#UO2Um[O&UO2UO$mP!)�gui)�side�fill�expand)�weight)�width�height�wrap)�row�column�sticky)r�tk�Tk�root�withdraw�Framer�pack�LEFT�BOTH�rowconfigure�columnconfigure�Text�NONEr�grid�NSEWr�editwin�	Scrollbar�vbar��clss&r�
setUpClass�LineNumbersTest.setUpClass's�������5�5�7������������#�(�(�+�����������r�w�w�t��D����#�#�A�a�#�0����&�&�q��&�3��7�7�3�>�>��B�R�W�W�M������
�
�!�A�b�g�g�
�6�#�C�H�H�-����<�<����7����rc���UOOO2UOO	2UOO2U;U;U;U;P!r)rPr�closerD�update_idletasks�destroyrrrSs&r�
tearDownClass�LineNumbersTest.tearDownClass8sG�������������!�!�#��������H�c�n�c�k�3�8rc�``�[OORO2RmQQQQ-Rm[OOOnUU1Qko[OOO[OOQU2oUO2ROUO2QRmU1Qko[OOO[OOQU2oUO2ROUO2P!)	�
background�#abcdef�
foreground�#123456c�<:�UQ6Xc
RO!RV2!)�
linenumber)�
highlight_cfg)�theme�element�orig_idleConf_GetHighlightrs&&��r�mock_idleconf_GetHighlight�9LineNumbersTest.setUp.<locals>.mock_idleconf_GetHighlightEs"����,�&��)�)�)�-�e�=�=r�GetHighlight�TkFixedFontc�:�RO!r)�
font_override)rD�
configType�sectionrs&&&�r�mock_idleconf_GetFont�4LineNumbersTest.setUp.<locals>.mock_idleconf_GetFontOs����%�%�%r�GetFont)�idlelib�sidebar�LineNumbersrPrcrd�idleConfrj�unittest�mock�patch�object�start�
addCleanup�stoprm)rrh�GetHighlight_patcherrp�GetFont_patcherrgsf    @r�setUp�LineNumbersTest.setUp?s����!�/�/�5�5�d�l�l�C���*�I�*�I�7���%,�_�_�%=�%=�%J�%J�"�	>� (�}�}�2�2�9�9��O�O�$�$�n�6P� R���"�"�$����,�1�1�2�*���	&�"�-�-�-�-�4�4��O�O�$�$�i�1F�H����������,�,�-rc�@�UOOQQ2P!��1.0�end)r�delete�rs&r�tearDown�LineNumbersTest.tearDownVs���	�	�����&rc�h�[[[UOO	Q222!)�sel)�tuple�map�strr�
tag_rangesr�s&r�
get_selection�LineNumbersTest.get_selectionYs#���S��d�i�i�2�2�5�9�:�;�;rc��UOOOUQ02oU]*]*oU]*]*oV41!)z.end -1c)rc�sidebar_text�bbox)r�liner��x�ys&&   r�get_line_screen_position�(LineNumbersTest.get_line_screen_position\sD�����+�+�0�0�D�6��1B�C����G�a�K����G�a�K���t�rc��UOOO2Q*oUOUP*[O
2P!)�state)rcr��config�assertEqualrB�DISABLED)rr�s& r�assert_state_disabled�%LineNumbersTest.assert_state_disabledbs7�����,�,�3�3�5�g�>������r��B�K�K�0rc�l�UOOOQ[O2!)r�)rcr��getrB�ENDr�s&r�get_sidebar_text_contents�)LineNumbersTest.get_sidebar_text_contentsfs#�����+�+�/�/��r�v�v�>�>rc��QO[[[[	]U]*22P,22oUOUO
2U2P!)�
)�joinrr�r��ranger�r�)r�n_lines�expecteds&& r�assert_sidebar_n_lines�&LineNumbersTest.assert_sidebar_n_linesisD���9�9�U�3�s�E�!�W�q�[�,A�#B�R�D�I�J������7�7�9�8�Drc�\�UOUOOQQ2U2!r�)r�rr�)rr�s&&r�assert_text_equals�"LineNumbersTest.assert_text_equalsms$������	�	�
�
�e�U� ;�X�F�Frc�*�UO]2P!��)r�r�s&r�test_init_empty�LineNumbersTest.test_init_emptyps���#�#�A�&rc��UOOQQ2UOQ2UO]2P!)�insertzfoo bar
foo bar
foo bar
zfoo bar
foo bar
foo bar

)rr�r�r�r�s&r�test_init_not_empty�#LineNumbersTest.test_init_not_emptyss3���	�	����=�1���� 4�5��#�#�A�&rc���UOUOOP
2UOO2UOUOOP	2UOO	2UOUOOP
2UOO	2UOUOOP
2UOO2UOUOOP	2UOO2UOUOOP	2P!)F)r�rc�is_shown�show_sidebar�hide_sidebarr�s&r�test_toggle_linenumbering�)LineNumbersTest.test_toggle_linenumberingxs���������1�1�5�9����$�$�&�������1�1�4�8����$�$�&�������1�1�5�9����$�$�&�������1�1�5�9����$�$�&�������1�1�4�8����$�$�&�������1�1�4�8rc�x�UOOQQ2UOQ2UO]2UO	2UOOQQ2UOQ2UO]2UO	2UOOQQ2UOQ2UO]2UO	2UOOQQ2UOQ2UO]2UO	2P!)	r��foobar�foobar
z
foozfoobar
foo
zfoobar
foohello
hello

z
worldzfoobar
foohello
hello

world
zhello
hello
)rr�r�r�r�r�s&r�test_insert�LineNumbersTest.test_insert�s����	�	����8�,����
�+��#�#�A�&��"�"�$��	�	����7�+�����0��#�#�A�&��"�"�$��	�	����;�/���� =�>��#�#�A�&��"�"�$��	�	����9�-���� D�E��#�#�A�&��"�"�$rc�n�UOOQQ2UOQ2UOOQQ2UOQ2UO	]2UO2UOOQQ2UOQ2UO	]2UO2UOOQQ2UOQ	2UO	]2UO2UOOQQ
2UOQ2UO	]2UO2UOOQQ
2UOQ
2UO	]2UO2P!)r�r�r�z1.1z1.3zfbar
z
fbarfoo
foo

�2.0z2.endz
fbarfoo


r�zfba
r�r�zfoo
foo
)rr�r�r�r�r�r�s&r�test_delete�LineNumbersTest.test_delete�sU���	�	����8�,����
�+��	�	�����&�����)��#�#�A�&��"�"�$��	�	����9�-���� 2�3��#�#�A�&��"�"�$�	
�	�	�����(�����0��#�#�A�&��"�"�$��	�	�����&�����(��#�#�A�&��"�"�$�	
�	�	�����&�����%��#�#�A�&��"�"�$rc��`�U1QkoRO]2ROU2]2ROOQQ2RO]2ROU2]2ROOQQ
2RO]	2ROU2]2ROOQQ2RO]
2ROU2]2ROOQQ2RO]2ROU2]2ROO	QQ2RO]
2ROU2]2ROO	QQ2RO]	2ROU2]2ROOQQ2RO]c2ROU2]2ROOQQ2RO]d2ROU2]2ROOQQ2RO]e2ROU2]2ROO	QQ2RO]d2ROU2]2ROO	QQ2RO]c2ROU2]2ROO	QQ2RO]12ROU2]2ROO	QQ2RO]2ROU2]2ROO	Q	Q2RO]2ROU2]2P!)c�j:�ROOO2Q*P*!)r<)rcr�r�r�s�r�	get_width�:LineNumbersTest.test_sidebar_text_width.<locals>.get_width�s&����?�?�/�/�6�6�8��A�"�E�Err��foozfoo
zinsert -1l linestartzinsert linestartz50.0 -1czend -1cz5.0 -1cr�z foo
foo
foo
foo
foo
foo
foo
foo
ahfoo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
)r�r�rr�r�)rr�sf r�test_sidebar_text_width�'LineNumbersTest.test_sidebar_text_width�s
���
	F�	
�#�#�A�&������a�(��	�	����5�)��#�#�A�&������a�(��	�	����9�-��#�#�A�&������a�(��	�	����7�+��#�#�B�'������a�(��	�	����7�+��#�#�B�'������a�(��	�	���/�1C�D��#�#�B�'������a�(��	�	���/�1C�D��#�#�A�&������a�(��	�	����:�.��#�#�B�'������a�(��	�	����7�+��#�#�C�(������a�(��	�	����7�+��#�#�C�(������a�(��	�	���/�1C�D��#�#�C�(������a�(��	�	���/�1C�D��#�#�B�'������a�(��	�	����Y�/��#�#�B�'������a�(��	�	����I�.��#�#�A�&������a�(�	
�	�	����	�*��#�#�A�&������a�(rz
test disabledc���UOO2UOOQQ2UOO2UO
]2vqUOOOQVQ5UOOO2UOO2UOUO2Q2P!)r�zone
two
three
four
�
<Button-1>�r�r�)r�z3.0)rcr�rr�rD�updater�r��event_generater�r�)rr�r�s&  r�test_click_selection�$LineNumbersTest.test_click_selections������$�$�&��	�	���� 9�:��	�	�����,�,�Q�/������$�$�3�3�L�A�3�K����$�$�+�+�-��	�	��������+�+�-�~�>rc�d�UOU2vq4UOU2vqVUOOOQV4Q5UOO2Qo[
[[UV5]Q52[[UVF]Q522FDFvq�UOOOQV�Q5UOO2JH	UOOOQVVQ5UOO2P!)r�r�c3� �U]*
o[U2FD0oV4*
U*U*VC*U**w�	J2	P!3hr�)r�)�a�b�steps�	last_step�is&&&  r�lerp�+LineNumbersTest.simulate_drag.<locals>.lerps:�����	�I��5�\��!�
��2�a�7�1�=�A�:M�M�M�"�s�A
A)r�z<B1-Motion>z<ButtonRelease-1>)	r�rcr�r�rDr��zipr�r')
r�
start_line�end_line�start_x�start_y�end_x�end_yr�r�r�s
&&&       r�
simulate_drag�LineNumbersTest.simulate_drags����8�8��D����4�4�X�>������$�$�3�3�L�6=�	4�	J��	�	����	N���C��g�B�7�8��C��g�B�7�8�
�D�A�
�O�O�(�(�7�7�
��7�P��I�I����
�	
���$�$�3�3�4G�6;�	4�	F��	�	���rc��UOO2UOOQQ2UOO2UO
]]2UOUO2Q2P!�r�zone
two
three
four
five
)r�z5.0�	rcr�rr�rDr�r�r�r�r�s&r�test_drag_selection_down�(LineNumbersTest.test_drag_selection_down*�b�����$�$�&��	�	���� ?�@��	�	����	
���1�a� �����+�+�-�~�>rc��UOO2UOOQQ2UOO2UO
]]2UOUO2Q2P!r�r�r�s&r�test_drag_selection_up�&LineNumbersTest.test_drag_selection_up4r�rc��UOO2UOOQQ2UOO2UOO
]
Q2UOO2UOUOOQ2Q2UOUOOOQ2Q2UOOOQ]]]
Q5UOO2UOUOOQ2Q2UOUOOOQ2Q2P!)r��unit�@0,0z11.0�<MouseWheel>�r�r��deltaa�line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
line
)rcr�rr�rDr��yview_scrollr�r)r�r��assertNotEqualr�s&r�test_scroll�LineNumbersTest.test_scroll>s�����$�$�&��	�	�����/��	�	����	
�	�	���r�6�*��	�	�������������0�&�9�������5�5�;�;�F�C�V�L�
	
���$�$�3�3�N�67�1�:<�	4�	>�	
�	�	�������D�I�I�O�O�F�3�V�<����D�O�O�8�8�>�>�v�F��Orc��UOoUOQ*oQoUOV#2UO2V0mUO2UO
2UOUOQ*U2V mUO2UOUOQ*U2P!)�font�
TkTextFont)rcr�r�r�rm�update_fontr�r�)r�ln�	orig_font�	test_fonts&   rr�LineNumbersTest.test_fontSs���
�_�_���O�O�F�+�	� �	����I�1�	����&��
����	�����������0�)�<�'��
�����������0�)�<rc�T``�ROn[RO2oQQQQ-oUU1QkoRO2URmRO	2RO2UU2RO	2UU2URmRO	2UU2P!)r^z#222222r`z#ffff00c�:�ROROQ*UQ*2ROROQ*UQ*2P!)r^r`)r�r�)�colorsrrs&��r�assert_colors_are_equal�FLineNumbersTest.test_highlight_colors.<locals>.assert_colors_are_equalps?������R�_�_�\�:�F�<�<P�Q����R�_�_�\�:�F�<�<P�Qr)rc�dictrdr��
update_colorsr�)r�orig_colors�test_colorsrrsf   @r�test_highlight_colors�%LineNumbersTest.test_highlight_colorsjs����
�_�_���4�-�-�.��#�Y��i�H��	R�
	����(���
����	������,�	������,�)���
������,r)rmrdrc) r,r-r.r/�classmethodrUr[r�r�r�r�r�r�r�r�r�r�r�r�r�r�rw�skipr�r�r�r�r�rr
r0r1r2s@rr5r5%s������8��8� �<��<�.�.'�<��1�?�E�G�'�'�
9�%�*%�<B)�V�]�]�?�#�?�$�?��2�]�]�?�#�?�$�?��]�]�?�#�?�$�?�P�*=�.-�-rr5c�`�\sQsQsnPsPs\Q2s\Q2s\Q2s	\Q2s
QsQsQs
Q	sQ
sQsQsQ
sQs\2Q2s\2Q2s\2Q2s\2Q2s\2Q2s\2Q2s\2Q2sQsQs\2Q2s\2Q2s\2Q2s U1Qks!Qs"Us#P!)�ShellSidebarTest�c��[Q2[O29UmoUO	2[U2[
U2[U2[U29Um	oUO2UO2P!)r7)rrBrCrDrErr
rr�flistrY�
init_shell)rTrDrs&  rrU�ShellSidebarTest.setUpClass�sc������%�%�'�!���4��
�
���D������d��+�D�1�1��	�E��������rc��UOd3P
UOmUOO2PUmPUmUOO2UOO
2PUmP!r)�shell�	executingrXrrDrYrZrSs&rr[�ShellSidebarTest.tearDownClass�s[���9�9� �"'�C�I�I���I�I�O�O���C�I���	����!�!�#���������rc���UOO2Um]
UOmUOO2[
UOOQ2]*
UmP!)�
�end-1c)	r�
open_shellr�pollintervalrDr�rr�n_preface_linesrSs&rr�ShellSidebarTest.init_shell�sL���I�I�(�(�*��	�!#��	�	��������(�������B�Q�F��rc��UOOOOUO]*Q0Q2UOO
O
2UOO2P!)r��.0r)	rr�bottomr�r!�
shell_sidebar�update_sidebarrDr�rSs&r�reset_shell�ShellSidebarTest.reset_shell�sW���	�	�
�
���#�#�s�':�':�1�'<�&=�R�$@�(�K��	�	���.�.�0������rc���PUm[OUOO6wc5[OUmUOO[mUO	2P!r)�
_saved_stdout�sys�stdoutrr(r�s&rr��ShellSidebarTest.setUp�sK��
"����:�:����*�*�*�!$���D�����*�*�C�J����rc�R�UOdUO[mP!P!r)r+r,r-r�s&rr��ShellSidebarTest.tearDown�s �����)��+�+�C�J�*rc	�~�UOOOo[UO	[
O22oSTt-tFD,oUOU2]*UOUQ2aJ.	ooUO2oSTt,tFDpdOUP2MJ	to!ttohttoh)r�r)rr&�canvas�list�findrB�ALLr��itemcget�get_shell_line_y_coordsr�)rr2�textsr�texts_by_y_coords�
line_y_coordsr�s&      r�get_sidebar_lines�"ShellSidebarTest.get_sidebar_lines�s������)�)�0�0���V�[�[����(�)���
���
�K�K���a� �&�/�/�$��"?�?��	�
��4�4�6�
�8E�F�
�1�%�%�a��.�
�F�F��
��
Gs�
4B5�B:c��UOOO2UOUO	2[U2'PU2P!r)rr&r'r�r;�len)r�expected_liness&&r�assert_sidebar_lines_end_with�.ShellSidebarTest.assert_sidebar_lines_end_with�sE���
�
� � �/�/�1�����"�"�$�c�.�&9�%9�%:�;��	
rc�D�UOOo,oUOQ2oUOQ]2]*Q6wcUOUQ02oUO	U29od/UOU]*2UOUQ02oJCU!)r��.�0z +1line linestartz +1line)rrr)�split�	dlineinfo�append)rr�y_coordsr)�lineinfos&    rr7�(ShellSidebarTest.get_shell_line_y_coords�s����z�z�������
�
�6�"���;�;�s�A��q�!�S�(��J�J�%��(9�:�;�E��>�>�%�0�0�x�=��O�O�H�Q�K�(��J�J�%���0�1�E��rc�`�UOOOn[RO	[
O22oUOU1QkQ5STt,tFDoROU2]*MJ	to!ttoh)c�6:�ROU2]*!r�)r�)rr2s&�r�<lambda>�<ShellSidebarTest.get_sidebar_line_y_coords.<locals>.<lambda>�s���F�K�K��$5�a�$8r)�key)	rr&r2r3r4rBr5�sortr�)rr8rr2s&  @r�get_sidebar_line_y_coords�*ShellSidebarTest.get_sidebar_line_y_coords�sg������)�)�0�0���V�[�[����(�)��
�
�
�8�
�9�16�7������D�!�!�$�$��7�7��7s�$#B
c��UO[UO22[UO222P!r)�assertLessEqual�setrQr7r�s&r�assert_sidebar_lines_synced�,ShellSidebarTest.assert_sidebar_lines_synced�s2�������.�.�0�1���,�,�.�/�	
rc���UOoUOo[UOQ22FD0vqEU]6�cUO	Q2UOQUQ2J2	P!)r��<<newline-and-indent>>r��stdin)rr�	enumeraterEr�r�)r�inputrr�
line_indexr�s&&    r�do_input�ShellSidebarTest.do_input�sU���
�
���z�z�� )�%�+�+�d�*;� <��J��A�~��#�#�$<�=��K�K��$��0�!=rc��UO2oUOUP,[U2]*
*Q,*2UO2P!)N�>>>)r;r�r>rV)r�
sidebar_liness& r�test_initial_state�#ShellSidebarTest.test_initial_state�sJ���.�.�0�
�����
�F�c�-�(�1�,�-���7�	
�	
�(�(�*rc#�b �UOQ2Pw�	UOQQ,2P!3h)r�ra�r^r@r�s&r�test_single_empty_input�(ShellSidebarTest.test_single_empty_input�s&����
�
�d��
��*�*�E�5�>�:���-/c#�b �UOQ2Pw�	UO,QN2P!3h)z1
�raNrarfr�s&r�test_single_line_statement�+ShellSidebarTest.test_single_line_statements#����
�
�e��
��*�*�+?�@�ric#�t �UO[Q22Pw�	UO,QN2P!3h)�7            if True:
            print(1)

            �ra�...rqrqNra)r^rr@r�s&r�test_multi_line_statement�*ShellSidebarTest.test_multi_line_statement
s7���	
�
�
�f���	�
	��*�*�,
�	�s�68c#� �UOQ2Pw�	UO,QN2UO2P!3h)�1z�11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
rk)r^r@rVr�s&r�test_single_long_line_wraps�,ShellSidebarTest.test_single_long_line_wrapss0����
�
�&�'�
��*�*�+?�@��(�(�*�s�=?c#�� �UOoUOoUOQ2Pw�	UO,QN2UO	QQ2UOQ2Pw�	UO,QN2UO
2UOO]*O2Pw�	UO,QN2UO
2P!3h)zprint("a\nb\nc")
r�zinsert -1line linestartz<<squeeze-current-text>>)raNNNrark)
rrr^r@�mark_setr�rV�squeezer�expandingbuttonsr:)rrrs&  r�test_squeeze_multi_line_output�/ShellSidebarTest.test_squeeze_multi_line_output#s�����
�
���z�z���
�
�,�-�
��*�*�+K�L��
�
�h�"9�;����6�7�
��*�*�+?�@��(�(�*�
���'�'��*�1�1�3�
��*�*�+K�L��(�(�*�s�C#C%c#�L �UOOoUO2oUO[	Q22Pw�	UO,Q
N2UO2oUO
V22UOQ2Pw�	UO,QN2UOQ2UOQ2Pw�	UO,QN2UOQUOQ22UOQ2Pw�	UOQ2Pw�	UOQ,2UOQ	2Pw�	UOQQ,2UOQ2UOQ2Pw�	UO,Q
N2P!3h)z6            if True:
            print(1)
            rarqz<<interrupt-execution>>z<<history-previous>>r�z
insert -2lrYz<<undo>>z<<redo>>)rarqrq)rarqrqNra)rarqNrarp)
rrr;r^rr@r�r�ryr))rr�initial_sidebar_lines�with_block_sidebar_liness&   r�test_interrupt_recall_undo_redo�0ShellSidebarTest.test_interrupt_recall_undo_redo7sa����z�z���� $� 6� 6� 8���
�
�f���	�	��*�*�+@�A�#'�#9�#9�#;� ����4�L�	
���5�6�
��*�*�+M�N�	
���2�3����5�6�
��*�*�+F�G�	
�
�
�h��
�
�<� 8�9����4�5�
����J�'�
��*�*�E�7�3����J�'�
��*�*�E�5�>�:����4�5����4�5�
��*�*�5�	
�s�F"F$c	#� �[OQ29^tt^2[UOQP29^tt^2UO	QQQ**Q*2Pw�UOUO
2Q,2PPP2PPP2P!)%fhK9h)%fhP!9h3h)ig+rzzx = rui'r�ra)r�adjust_int_max_str_digitsrrr^r�r;r�s&r�test_very_long_wrapped_line�,ShellSidebarTest.test_very_long_wrapped_linees����
�
.�
.�v�
6�
6��$�*�*�j�$�7�7��M�M�&�3�v�:�-��4�5�����T�3�3�5��w�?�8�7�
6�7�7��7�
6�
6�sA� C� B4�A
B!	�B4�
C�!B1
�*B1
�,B4�4C	�=C	�?	Cc�````�ROOnQnU1Qko[OOO[OOQU2nRO2UU1QkoROU2UU1QkoROU2R2RO2ROU2R2P!)r�c�
:�R!rr!)rDrnrors&&&�rrp�9ShellSidebarTest.test_font.<locals>.mock_idleconf_GetFontrs	����rrrc�J:�RO2RO2P!r)r}r�)rrts��r�cleanup�+ShellSidebarTest.test_font.<locals>.cleanupws���� � �"����!rc�:�ROo[UO[O22oSTt.tFDp OUQ2jJ	ooRO
[U2]2[[U22!ttoh)r�)
r2r3r4rBr5r6r�r>�next�iter)r2r8r�fontsrrts    ��r�get_sidebar_font�4ShellSidebarTest.test_font.<locals>.get_sidebar_font|si����^�^�F�����R�V�V�,�-�E�?D�E�u�t�_�_�T�6�2�u�E�E����S��Z��+���U��$�$��Fs�B)rr&rwrxryrzrsrtrvr{r|r�r�r�)rrpr�r�rrtrsf   @@@rr�ShellSidebarTest.test_fontms�����*�*�*�*�� �	�	�"�-�-�-�-�4�4��O�O�$�$�i�1F�H������	"�	
���� �	%�	
���,�.�	�:��������)�+�Y�7rc�`````�ROOnQQQQ-n[OOO
nUU1Qko[OOO[OOQU2nRO2UU1QkoROU2UU1QkoROU2R2RO2ROU2R2P!)r^r_r`rac�(:�UQ7cR!RV2!)rc)rc�consoler!)rerfrgrs&&��rrh�JShellSidebarTest.test_highlight_colors.<locals>.mock_idleconf_GetHighlight�s����3�3�"�"�-�e�=�=rrjc�J:�RO2RO2P!r)r}r
)r~rts��rr��7ShellSidebarTest.test_highlight_colors.<locals>.cleanup�s��� �%�%�'��!�!�#rc�F:�ROo[UO[O22oSTt.tFDp OUQ2jJ	ooRO
[U2]2[[U22oUOQ2oQUQU-!ttoh)r9r^r`)r2r3r4rBr5r6r�r>r�r��cget)r2r8r�fgs�fg�bgrrts      ��r�get_sidebar_colors�BShellSidebarTest.test_highlight_colors.<locals>.get_sidebar_colors�s�����^�^�F�����R�V�V�,�-�E�=B�C�U�T�?�?�4��0�U�C�C����S��X�q�)��d�3�i��B����\�*�B� �"�l�B�7�7��	Ds�B)rr&rsrtrvrjrwrxryrzr{r|r�r
r�)rrhr�r�r~rgrtrsf   @@@@rr
�&ShellSidebarTest.test_highlight_colors�s�����*�*�*�*��#�Y��i�H��%,�_�_�%=�%=�%J�%J�"�	>� (�}�}�2�2�9�9��O�O�$�$�n�&� (��	�"�"�$�	$�	
���� �	8�	
���.�0�+�>��������+�-�{�;rc#�� �UOOoUOOoUOQ2Pw�	UO	[UQ2]2[
U2oUOUOUOUQ0222UOOQ6H9%c[OQ6oUOOQ6Xc]L]xoU%c UOOQ]]Q5LUOOQ]]UQ	5Pw�	UOUOUOUQ0222U%c UOOQ
]]Q5L UOOQ]]U'Q	5Pw�	UOUOUOUQ0222P!3h)zx = """r�r$�x11gffffff!@�aquaz
<Button-4>r�r�r�z
<Button-5>zox = """



































































































"""
)rr&rr^�
assertGreaterrr�assertIsNotNonerFr)r2�_windowingsystemrB�	TkVersionr��assertIsNone)rrtr�last_lineno�x11_buttonsr�s&     r�test_mousewheel� ShellSidebarTest.test_mousewheel�s�����*�*�*�*���z�z����	
�
�
�4�5�
����:�d�F�3�Q�7�(��.�����T�^�^�D�J�J�+��b�7I�,J�K�L�
�~�~�6�6�%�?�.�.��<�<�#�-�	��^�^�4�4��>��C����N�N�)�)�,�!�q�)�A��N�N�)�)�.�A��%�)�P�
����$�.�.����{�m�2�4F�)G�H�I���N�N�)�)�,�!�q�)�A��N�N�)�)�.�A��5�&�)�Q�
����T�^�^�D�J�J�+��b�7I�,J�K�L�s �B<G/�?.G/�.G/�:A<G/�7A8G/c#�� �UOOoUOOo[U2oUO	[Q22Pw�	UO
QUQ0Q2UOQQ2oUOUQ2UOQU2UOQ2UOUO2UO2oUOVT2P!3h)	ror�r$r�	sel.first�sel.lastz	if True:
z
1
z<<copy>>)rr&rrr^r�tag_addr��assertStartsWith�assertInr�r|�clipboard_clear�
clipboard_getr�)rrtr�
first_line�
selected_text�copied_texts&     r�	test_copy�ShellSidebarTest.test_copy�s�����*�*�*�*���z�z����'��-�
��
�
�f���	�
	����U�z�l�"�-�x�8�����j�9�
����m�\�:��
�
�g�}�-����J�'�����,�,�-��(�(�*������4�s�C3C5c	#�� �UOOoUOOo[U2oUO	[Q22Pw�	UO
QUQ0Q2UOQQ2oUOUQ2UOQQ2oUOQ2oUO2Q	,Q
,[U2]*
**P,*oQOQ[UUP	Q522Q*oUOQ
2UOUO 2UO#2o	UO%V�2P!3h)z;            if True:
                print(1)

            r�z.3rr�r�zTrue:
zsel.first linestartr�rarqc3�^�SF �DvqUeSLUQ*U*w�	J 	P!3h)N� r!)�.0�promptr�s&  r�	<genexpr>�:ShellSidebarTest.test_copy_with_prompts.<locals>.<genexpr>�s0��!1���!1����N�D����t�(;�;�!1�s�
-�-)�strictz<<copy-with-prompts>>)rr&rrr^rr�r�r�rE�popr>r�r�r�r|r�r�r�)
rrtrr�r��selected_lines_text�selected_lines�expected_prompts�selected_text_with_promptsr�s
&         r�test_copy_with_prompts�'ShellSidebarTest.test_copy_with_prompts�sI����*�*�*�*���z�z����'��-�
��
�
�f���	�
	����U�z�l�"�-�x�8�����j�9�
����m�Y�7�"�h�h�'<�j�I��,�2�2�4�8�������G�u�g��^�!4�q�!8�9�9�T�F�B�	�%)�Y�Y�/
� #�$4�$2�+/�!1�/
�&
�

�&�"�	
���3�4�����,�,�-��(�(�*������A�s�E(E*c�H:�U]6�cPg-RZO9Q$RZ9Q$!)�rDr)rBrCr
)�formatr3s"�r�__annotate__�ShellSidebarTest.__annotate__�s����
�%�%�����r)r+)$r,r-r.r/rDrrrUr[rr(r�r�r;r@r7rQrVr^rcrrgrlrrrvr|r�r�rr
r�r�r��__annotate_func__r0r1r2s@rrr�s������D��E����� �����G��G�����

�,�G�
�	�8�
�1�+���;��;�
��A��A�
�����"��+��+���+��+�&��+
��+
�Z��@��@�8�4<�@��!M��!M�F��5��5�0��!B��!B�y
�rr�__main__)�	verbosity)%�textwraprr,�	itertoolsrrw�
unittest.mock�test.supportrr�testr�tkinterrB�'idlelib.idle_test.tkinter_testing_utilsr�idlelib.delegatorr�idlelib.percolatorr	�idlelib.pyshellrsr
r�idlelib.utilrr
r�idlelib.sidebarrrr�TestCaser5rr,�mainr!rr�<module>r�s����
����,���F�'�)��4�D�D��:�2�2�a-�h�'�'�a-�H}B�x�(�(�}B�@�z���M�M�A��r

Youez - 2016 - github.com/yon3zu
LinuXploit