a
    §ˆcÎ  ã                   @   sb   d dl Z ddlmZ ddlmZ ddlmZ edƒZejdkZ	e  
e	d¡G d	d
„ d
e jeƒƒZdS )é    Né   )ÚHeadingText)ÚSplitDialog)Útoolkit_objectz(util.gui_test_assistant:GuiTestAssistantZUnimplementedzNo GuiTestAssistantc                   @   sD   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dS )Ú
TestDialogc                 C   s   t  | ¡ tƒ | _d S ©N)ÚGuiTestAssistantÚsetUpr   Údialog©Úself© r   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/tests/test_split_dialog.pyr	      s    
zTestDialog.setUpc                 C   sV   | j jd urD|  | j j¡� | j  ¡  W d   ƒ n1 s:0    Y  | ` t | ¡ d S r   )r
   ÚcontrolZdelete_widgetÚdestroyr   ÚtearDownr   r   r   r   r      s
    (zTestDialog.tearDownc                 C   sh   |   ¡ � | j ¡  W d   ƒ n1 s(0    Y  |   ¡ � | j ¡  W d   ƒ n1 sZ0    Y  d S r   )Ú
event_loopr
   Ú_creater   r   r   r   r   Útest_create#   s    
(
zTestDialog.test_createc                 C   s6   |   ¡ � | j ¡  W d   ƒ n1 s(0    Y  d S r   )r   r
   r   r   r   r   r   Útest_destroy*   s    
zTestDialog.test_destroyc                 C   sp   d| j _|  ¡ � | j  ¡  W d   ƒ n1 s00    Y  |  ¡ � | j  ¡  W d   ƒ n1 sb0    Y  d S )NZ
horizontal)r
   Ú	directionr   r   r   r   r   r   r   Útest_horizontal/   s
    
(
zTestDialog.test_horizontalc                 C   sp   d| j _|  ¡ � | j  ¡  W d   ƒ n1 s00    Y  |  ¡ � | j  ¡  W d   ƒ n1 sb0    Y  d S )Ng      Ð?)r
   Zratior   r   r   r   r   r   r   Ú
test_ratio7   s
    
(
zTestDialog.test_ratioc                 C   sx   t | j_t | j_|  ¡ � | j ¡  W d   ƒ n1 s80    Y  |  ¡ � | j ¡  W d   ƒ n1 sj0    Y  d S r   )r   r
   ÚlhsÚrhsr   r   r   r   r   r   r   Útest_contents?   s    
(
zTestDialog.test_contentsN)
Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   r   r   r   r   r      s   r   )ZunittestZheading_textr   Zsplit_dialogr   Ztoolkitr   r   r   Zno_gui_test_assistantZskipIfZTestCaser   r   r   r   r   Ú<module>   s   

