File: D:/Python311/Lib/tkinter/test/test_tkinter/__pycache__/test_text.cpython-311.pyc
�
��Vc� � � � d dl Z d dlZd dlmZ d dlmZ ed� � G d� dee j � � Zedk r e j � � dS dS )� N)�requires)�AbstractTkTest�guic �* � � e Zd Z� fd�Zd� Zd� Z� xZS )�TextTestc � �� t � � � � � t j | j � � | _ d S )N)�super�setUp�tkinter�Text�root�text)�self� __class__s ��7D:\Python311\Lib\tkinter\test\test_tkinter\test_text.pyr
zTextTest.setUp
s+ �� �
���
�
�����L���+�+�� � � � c �0 � | j }|� � � } |� d� � | � |� � � d� � |� d� � | � |� � � d� � |� |� � | � |� � � |� � d S # |� |� � | � |� � � |� � w xY w)Nr � )r �debug�assertEqual)r r �olddebugs r �
test_debugzTextTest.test_debug s� � ��y���:�:�<�<�� 5��J�J�q�M�M�M����T�Z�Z�\�\�1�-�-�-��J�J�q�M�M�M����T�Z�Z�\�\�1�-�-�-��J�J�x� � � ����T�Z�Z�\�\�8�4�4�4�4�4��
�J�J�x� � � ����T�Z�Z�\�\�8�4�4�4�4���s �A:C �?Dc �$ � | j }| � t j |j d d� � | � t j |j dd � � | � t j |j d d � � | � t j |j dd� � |� dd� � | � |� ddd� � d� � | � |� d dd� � d
� � d S )Nz1.0�a� r zhi-testz-test�endz1.2�testz1.3)r �assertRaisesr �TclError�search�insertr )r r s r �test_searchzTextTest.test_search s� � ��y��
���'�*�D�K��u�E�E�E����'�*�D�K��d�C�C�C����'�*�D�K��t�D�D�D�
���'�*�D�K��Q�?�?�?�
���E�9�%�%�%�������W�e�U�;�;�U�C�C�C�������V�U�E�:�:�E�B�B�B�B�Br )�__name__�
__module__�__qualname__r
r r"