+
    5mj  c                      ^ RI Ht ^ RIt^ RIHu Ht ^ RIH	t	H
t
Ht R R ltR R ltR R	 ltR
 R ltR R lt ! R R4      tR R ltR# )    )annotationsN)PopupWindow_FallbackGdk_FallbackGtkc                   V ^8  d   QhRR/# )   returnr    )formats   "b/home/user/overdeck-private-tests/workstation-ai-broad2/modules/systray/tests/test_popup_window.py__annotate__r      s           c            	     4    \        RR RR\        R\        /V B # )titleAccounts
gtk_module
gdk_moduler	   )r   r   r   )kwargss   ,r   _popupr      s3        	 r   c                   V ^8  d   QhRR/# r   r   Noner	   )r
   s   "r   r   r      s     0 0 0r   c                    \        4       p V P                  q! 4       pR q2VJ qD'       g   \        P                  ! R	V3R
W#34      RR\        P
                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCR# )Tpy0popuppy2py4py7assert %(py9)spy9Nis)zS%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s._handle_delete_event
}()
} is %(py7)s)
r   _handle_delete_event
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanationr   @py_assert1@py_assert3@py_assert6@py_assert5@py_format8@py_format10s          r   /test_delete_event_handler_reports_event_handledr2      s    HE%%/%'/4/4/////'//////5////5///%///'///4////////r   c                   V ^8  d   QhRR/# r   r	   )r
   s   "r   r   r      s     	/ 	/D 	/r   c                    \        4       p V P                  4       pV P                  4        V P                  P	                  R R4       V P
                  pRq2VJ qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCV P                  q"P                  pR	qtVJ q'       g   \        P                  ! RV3RWG34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p	\        \        P                  ! V	4      4      hR;p;p;rV P                  q"! 4       qDVJ q'       Eg   \        P                  ! RV3RWA34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R
\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;rHR# )delete-eventNTr   r   r   py5assert %(py7)sr   Fr   r   r   py6contentassert %(py8)spy8r    z1%(py2)s
{%(py2)s = %(py0)s.is_closed
} is %(py5)s)zM%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.window
}.destroyed
} is %(py7)szO%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.get_content_area
}()
} is %(py6)s)r   get_content_areashowwindowemit	is_closedr#   r$   r%   r&   r'   r(   r)   r*   	destroyed)r   r9   r,   @py_assert4r-   @py_format6r0   r.   r/   r1   @py_format7@py_format9s               r   :test_delete_event_hides_window_without_destroying_childrenrH      s   HE$$&G	JJL	LLnd+??"d"d"""""?""""""5""""5"""?"""d""""""""<<*!!*U*U*****!******5****5***<***!***U********!!.!#.w.....#......5....5...!...#......w....w........r   c                   V ^8  d   QhRR/# r   r	   )r
   s   "r   r   r   !   s     
/ 
/ 
/r   c                    \        4       p V P                  4       pV P                  4        V P                  P	                  R R4       V P                  4        V P
                  pRq2VJ qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCV P                  pR	q2VJ qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCV P                  q"! 4       qDVJ qw'       Eg   \        P                  ! RV3RWA34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R
\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p	\        \        P                  ! V	4      4      hR;p;rGR# )r5   NFr   r   r   r6   r7   r   Tr   r8   r9   r:   r;   r    r<   )z2%(py2)s
{%(py2)s = %(py0)s.is_visible
} is %(py5)sr=   )r   r>   r?   r@   rA   rB   r#   r$   r%   r&   r'   r(   r)   r*   
is_visible)
r   r9   r,   rD   r-   rE   r0   r/   rF   rG   s
             r   .test_window_survives_reopen_after_delete_eventrL   !   s   HE$$&G	JJL	LLnd+	JJL??#e#e#####?######5####5###?###e#########t#t###########5####5######t########!!.!#.w.....#......5....5...!...#......w....w........r   c                   V ^8  d   QhRR/# r   r	   )r
   s   "r   r   r   .   s     . .d .r   c                    \        4       p V P                  q! 4       pR q2VJ qD'       g   \        P                  ! R	V3R
W#34      RR\        P
                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rCR# )Fr   r   r   r   r   r   r   Nr    )zP%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s._handle_focus_out
}()
} is %(py7)s)
r   _handle_focus_outr#   r$   r%   r&   r'   r(   r)   r*   r+   s          r   ,test_focus_out_does_not_report_event_handledrP   .   s    HE""-"$-------$------5----5---"---$-----------r   c                  "    ] tR t^4tR R ltRtR# )_Requisitionc               $    V ^8  d   QhRRRRRR/# )r   widthintheightr   r   r	   )r
   s   "r   r   _Requisition.__annotate__5   s!      c 3 4 r   c                	    Wn         W n        R # N)rT   rV   )selfrT   rV   s   &&&r   __init___Requisition.__init__5   s    
r   )rV   rT   N)__name__
__module____qualname____firstlineno__r[   __static_attributes__r	   r   r   rR   rR   4   s     r   rR   c                   V ^8  d   QhRR/# r   r	   )r
   s   "r   r   r   :   s     ! !$ !r   c                 $  a \        4       p \        R R
RR /4      ! 4       V n        . oV3R lV P                  n        V P                  4        R.pSV8H  q"'       g   \        P                  ! RV3RSV34      RR\        P                  ! 4       9   g   \        P                  ! S4      '       d   \        P                  ! S4      MRR\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;r!R	# )Contentget_preferred_sizec                2    \        ^
^4      \        RR4      3# )
   ,    )rR   )rZ   s   &r   <lambda>Btest_resize_to_content_uses_natural_size_request.<locals>.<lambda>?   s    \"b-A<PSUXCY,Zr   c                (   < SP                  W34      # rY   )append)rT   rV   callss   &&r   rj   rk   B   s    e_0Mr   r   rn   py3zassert %(py5)sr6   Nr	   )rh   ri   )==)z%(py0)s == %(py3)s)r   type_contentr@   resizeresize_to_contentr#   r$   r%   r&   r'   r(   r)   r*   )r   @py_assert2r,   @py_format4rE   rn   s        @r   0test_resize_to_content_uses_natural_size_requestrw   :   s    HE
	Z[ EN
 $&EMELL	L 5L     5L      5    5   L        r   )
__future__r   builtinsr%   _pytest.assertion.rewrite	assertionrewriter#   popup_windowr   r   r   r   r2   rH   rL   rP   rR   rw   r	   r   r   <module>r~      s;    "    @ @0	/
/. !r   