+
     Bi%                         ^ RI Ht ^ RIt^ RIt^ RIHt ^ RIHtHt ^ RI	H
t
 ^ RIHt ^ RIHt  ! R R	]P                  4      t ! R
 R]P                  4      t]R8X  d   ]P$                  ! ^R7       R# R# )    )outwinN)requires)TkText)	Mbox_func)Func)mockc                   j   a  ] tR t^t o ]R 4       t]R 4       tR tR tR t	R t
R tR tR	 tR
tV tR# )OutputWindowTestc                @   \        R 4       \        4       ;qn        VP                  4        \        P
                  ! RRRV4      ;q n        \        V4      ;V n        Vn        \        P                  R8X  d(   V P                  P                  V P                  n        R# R# )guiNdarwin)r   r   rootwithdrawr   OutputWindowwindowr   textsysplatformupdate_idletasksupdate)clsr   ws   &  4/usr/lib/python3.14/idlelib/idle_test/test_outwin.py
setUpClassOutputWindowTest.setUpClass   sq    $x,,T4tDDJ J&16<<8#!hh77CHHO $    c                z    V P                   P                  4        V =V = V P                  P	                  4        V =R # N)r   closer   r   destroyr   s   &r   tearDownClassOutputWindowTest.tearDownClass   s0    

HcjHr   c                >    V P                   P                  R R4       R# )1.0endN)r   deleteselfs   &r   setUpOutputWindowTest.setUp"   s    		&r   c                    V P                   pV P                  VP                  R 4      4       V P                  VP                  \        4      4       R# )ztest.txtN)r   assertFalseispythonsource__file__)r*   r   s   & r   test_ispythonsource$OutputWindowTest.test_ispythonsource%   s=    KK))*56))(34r   c                n    V P                  V P                  P                  P                  4       R 4       R# )OutputN)assertEqualr   toptitler)   s   &r   test_window_title"OutputWindowTest.test_window_title+   s#    ..0(;r   c                l   V P                   pV P                  p\        4       Vn        R VP                  n        V! VP                  4       R4       V! VP                  P                  ^4       RVP                  n        V! VP                  4       R4       V! VP                  P                  ^4       V=R# )FnoTyesN)r   r5   r   	get_savedresult	maybesavecalled)r*   r   eqs   &  r   test_maybesaveOutputWindowTest.test_maybesave.   s    KKf"
1;;=$
1;;q!!
1;;=% 
1;;q!Kr   c                   V P                   pV P                  P                  pV P                  P                  pV P                  P
                  pV! R R4       RpV! V! V4      \        V4      4       V! V! R R4      R4       V! V! RR4      R4       V! R R4       RpV! V! V4      \        V4      4       V! V! R R4      R4       V! V! RR4      R4       V! R R4       RpV! V! V4      \        V4      4       V! V! R R4      R4       V! V! R	R
4      R4       V! V! RR4      R4       V! R R4       RpRpV! V! VRR7      \        V4      4       V! V! VRR7      \        V4      4       V! V! RR4      V4       V! V! RR4      V4       V! V! R R4      VP                  R4      4       V! V! R	R
4      VP                  R4      4       R# )r&   r'   z	test text1.endinsert linestartinsert lineendz
test text
 ztest text
Line 22.02.endLine 2Line 2
mytag)tags	secondtagzmytag.firstz
mytag.lastzsecondtag.firstzsecondtag.last
N)r5   r   r(   getr   writelenrstrip)r*   rA   r(   rQ   rR   	test_text
test_text2s   &      r   
test_writeOutputWindowTest.test_write<   s   !!iimm!! 	ue	
5S^,
3ug,
3!#34kB 	ue!	
5S^,
3ug,
3!#34b9 	ue'	
5S^,
3ug,
3ug)
3!#34h? 	ue!	

5)3y>:
5+.J@
3}l+Y7
3 "23Z@
3ug	 0 0 67
3ug
 1 1$ 78r   c                   V P                   pV P                  P                  pV P                  P                  pV! R4       V! V! RR4      R4       V! V! RR4      R4       V! V! RR4      R	4       V! V! R
R4      R4       R# )Line 1
r&   rE   zLine 1rI   rJ   rK   z3.0z3.endzLine 3rF   rG   rH   N)rZ   rL   zLine 3
)r5   r   rQ   r   
writelines)r*   rA   rQ   r[   s   &   r   test_writelines OutputWindowTest.test_writelinesc   sx    iimm[[++
78
3ug)
3ug)
3ug)
3!#34b9r   c                   V P                   pV P                  pV P                  p\        P                  ! 4       Vn        \        4       ;qBP
                  n        \        4       ;qRn	        VP                  R 4       V P                  VP                  4       4       V! VP                  ^ 4       V! VP                  R4       VP                  \        \         4       R24       VP                  \        \         4       R24       V P                  VP                  4       4       V! VP"                  \        \         4      ^34       VP%                  RR4       VP                  \        \         4       R24       VP                  R 4       V P                  VP                  4       4       V! VP"                  \        \         4      ^*34       VP
                  =V=	R# )zNot a file linezNo special linez: 42: spam
z
: 21: spamr&   r'   N)r5   r   r   r	   Mockflistr   gotofileliner   	showerrorrR   assertIsNonegoto_file_liner@   r7   strr0   argsr(   )r*   rA   r   r   gflrb   s   &     r   test_goto_file_line$OutputWindowTest.test_goto_file_linen   sZ   KKyy))+%)V+gg""++-	K 	
!"!**,-
3::q
9??-. 	
3x=/./	3x=/,-!**,-
388c(mR() 	E5!	3x=/./	!"!**,-
388c(mR()GG !+r    N)__name__
__module____qualname____firstlineno__classmethodr   r#   r+   r1   r8   rB   rW   r\   rh   __static_attributes____classdictcell____classdict__s   @r   r   r      sT     8 8  '5<%9N	:. .r   r   c                   f   a  ] tR t^t o ]R 4       tR t]P                  ! R4      R 4       t	Rt
V tR# )ModuleFunctionTestc                    R \         n        R # r   )r   file_line_progsr"   s   &r   r+   ModuleFunctionTest.setUp   s
    !%r   c                    \         P                  ! 4        \        \         P                  \         P                  4       F!  w  rV P                  VP                  V4       K#  	  R # r   )r   compile_progszipfile_line_patsrw   r5   pattern)r*   patregexs   &  r   test_compile_progs%ModuleFunctionTest.test_compile_progs   sB    f33V5K5KLJCU]]C0 Mr   zbuiltins.openc                    \         P                  pRpV F?  w  rEV P                  V! V4      V4       V'       g   K'  VP                  V^ ,          4       KA  	  R# )"foo file "testfile1", line 42, barN))r   )	testfile1*   )zfoo testfile2(21) bar)	testfile2   )z  testfile3  : 42: foo bar\n)z  testfile3  r   )zfoo testfile4.py :1: )zfoo testfile4.py    )u   testfile5: ᧔᧒: )	testfile5r   )ztestfile6: 42N)ztestfile7 42 textN)r   file_line_helperr5   assert_called_with)r*   	mock_openflh
test_lineslineexpected_outputs   &&    r   test_file_line_helper(ModuleFunctionTest.test_file_line_helper   sO    %%
 &0!DSY8,,_Q-?@ &0r   rj   N)rk   rl   rm   rn   ro   r+   r   r	   patchr   rp   rq   rr   s   @r   ru   ru      s;     & &1
 
ZZ A !Ar   ru   __main__)	verbosity)idlelibr   r   unittesttest.supportr   tkinterr   r   idlelib.idle_test.mock_tkr   idlelib.idle_test.mock_idler   r	   TestCaser   ru   rk   mainrj   r   r   <module>r      sc     
  !  / , }.x(( }.@A** A: zMMA r   