
    /Jf                    z    d Z ddlmZ ddlmZ ddlmZmZmZ ddl	m
Z
  G d de
          Z G d d	e
          Zd
S )zJ
Tests for the insults windowing module, L{twisted.conch.insults.window}.
    )annotations)Callable)ScrolledArea
TextOutput	TopWindow)TestCasec                      e Zd ZdZddZdS )TopWindowTestszB
    Tests for L{TopWindow}, the root window container class.
    returnNonec                *   g g }t          fd|j                  }|                     g            |                     |g            |                                 |                     g            |                     t	          |          d           |                                 |                     g            |                     t	          |          d            |                                             |                     t	                    d           |                     |g            |                                 |                     t	                    d           |                     t	          |          d           dS )z
        Verify that L{TopWindow.repaint} schedules an actual paint to occur
        using the scheduling object passed to its initializer.
        c                 .                          d           S )N)append)paintss   a/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/twisted/conch/test/test_window.py<lambda>z5TopWindowTests.test_paintScheduling.<locals>.<lambda>   s    t!4!4        N)r   r   assertEqualrepaintlenpop)self	scheduledrootr   s      @r   test_paintSchedulingz#TopWindowTests.test_paintScheduling   sr   
  02	4444i6FGG 	$$$B''' 	$$$Y+++ 	$$$Y+++ 		Va(((B''' 	Va(((Y+++++r   Nr   r   )__name__
__module____qualname____doc__r    r   r   r
   r
      s2         !, !, !, !, !, !,r   r
   c                      e Zd ZdZddZdS )ScrolledAreaTestsz
    Tests for L{ScrolledArea}, a widget which creates a viewport containing
    another widget and can reposition that viewport using scrollbars.
    r   r   c                    t                      }t          |          }|                     |j        |j                   |                     |j        j        |           dS )z
        The parent of the widget passed to L{ScrolledArea} is set to a new
        L{Viewport} created by the L{ScrolledArea} which itself has the
        L{ScrolledArea} instance as its parent.
        N)r   r   assertIsparent	_viewport)r   widgetscrolleds      r   test_parentzScrolledAreaTests.test_parent;   sS     ''fmX%7888h(/:::::r   Nr   )r   r   r    r!   r+   r"   r   r   r$   r$   5   s2         
	; 	; 	; 	; 	; 	;r   r$   N)r!   
__future__r   typingr   twisted.conch.insults.windowr   r   r   twisted.trial.unittestr   r
   r$   r"   r   r   <module>r0      s     # " " " " "       L L L L L L L L L L + + + + + +&, &, &, &, &,X &, &, &,R; ; ; ; ; ; ; ; ; ;r   