???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
{fc           @   sz   d  Z  d d l m Z d d l Z d d l Z d d l m Z d e j f d „  ƒ  YZ	 e
 d k rv e j d d	 ƒ n  d S(
   sT   Test (selected) IDLE Edit menu items.

Edit modules have their own test files files
iÿÿÿÿ(   t   requiresN(   t   PyShellt	   PasteTestc           B   sb   e  Z d  Z e d „  ƒ Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z RS(	   se   Test pasting into widgets that allow pasting.

    On X11, replacing selections requires tk fix.
    c         C   s…   t  d ƒ t j ƒ  |  _ } | j ƒ  t j | ƒ t j | ƒ |  _ t j	 | ƒ |  _
 t j | ƒ |  _ | j ƒ  | j d ƒ d  S(   Nt   guit   two(   R    t   tkt   Tkt   roott   withdrawR   t   fix_x11_pastet   Textt   textt   Entryt   entryt   Spinboxt   spint   clipboard_cleart   clipboard_append(   t   clsR   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
   setUpClass   s    


c         C   sP   |  `  |  ` |  ` |  j j ƒ  |  j j ƒ  |  j j ƒ  |  j j ƒ  |  ` d  S(   N(   R   R   R   R   R   t   update_idletaskst   updatet   destroy(   R   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   tearDownClass   s    c         C   se   |  j  } d \ } } | j d d ƒ | j d d | ƒ | j d ƒ |  j | j d d ƒ | ƒ d S(	   s+   Test pasting into text without a selection.t    s   onetwo
s   1.0t   endt   ones	   <<Paste>>N(   R   s   onetwo
(   R   t   deletet   insertt   event_generatet   assertEqualt   get(   t   selfR   t   tagt   ans(    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_text_no_selection&   s    	c         C   se   |  j  } d \ } } | j d d ƒ | j d d | ƒ | j d ƒ |  j | j d d ƒ | ƒ d S(	   s(   Test pasting into text with a selection.t   sels   two
s   1.0R   R   s	   <<Paste>>N(   R$   s   two
(   R   R   R   R   R   R   (   R    R   R!   R"   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_text_selection/   s    	c         C   sl   |  j  } d \ } } | j d d ƒ | j d d ƒ | j d | ƒ | j d ƒ |  j | j ƒ  | ƒ d S(   s/   Test pasting into an entry without a selection.i    t   onetwoR   R   s	   <<Paste>>N(   i    R&   (   R   R   R   t   select_rangeR   R   R   (   R    R   R   R"   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_entry_no_selection8   s    	c         C   sl   |  j  } d \ } } | j d d ƒ | j d d ƒ | j d | ƒ | j d ƒ |  j | j ƒ  | ƒ d S(   s,   Test pasting into an entry with a selection.R   R   i    R   s	   <<Paste>>N(   R   R   (   R   R   R   R'   R   R   R   (   R    R   R   R"   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_entry_selectionD   s    	c         C   so   |  j  } d \ } } | j d d ƒ | j d d ƒ | j d d | ƒ | j d ƒ |  j | j ƒ  | ƒ d S(	   s0   Test pasting into a spinbox without a selection.i    R&   R   R   t   ranges	   <<Paste>>N(   i    R&   (   R   R   R   t	   selectionR   R   R   (   R    R   R   R"   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_spin_no_selectionN   s    	c         C   so   |  j  } d \ } } | j d d ƒ | j d d ƒ | j d d | ƒ | j d ƒ |  j | j ƒ  | ƒ d S(	   s-   Test pasting into a spinbox with a selection.R   R   i    R   R*   s	   <<Paste>>N(   R   R   (   R   R   R   R+   R   R   R   (   R    R   R   R"   (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   test_paste_spin_selectionY   s    	(   t   __name__t
   __module__t   __doc__t   classmethodR   R   R#   R%   R(   R)   R,   R-   (    (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyR      s   							
	t   __main__t	   verbosityi   (   R0   t   test.test_supportR    t   TkinterR   t   unittestt   idlelibR   t   TestCaseR   R.   t   main(    (    (    s7   /usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   <module>   s   Y