ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
V~gc           @   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   (    (    sD   /opt/alt/python27/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   (    (    sD   /opt/alt/python27/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(    (    sD   /opt/alt/python27/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"   (    (    sD   /opt/alt/python27/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"   (    (    sD   /opt/alt/python27/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"   (    (    sD   /opt/alt/python27/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"   (    (    sD   /opt/alt/python27/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"   (    (    sD   /opt/alt/python27/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-   (    (    (    sD   /opt/alt/python27/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(    (    (    sD   /opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt   <module>   s   Y