ϪfldZddlmZddlmZddlmZmZmZddl m Z Gdde Z Gdd e Z y ) zJ Tests for the insults windowing module, L{twisted.conch.insults.window}. ) annotations)Callable) ScrolledArea TextOutput TopWindow)TestCaseceZdZdZddZy)TopWindowTestszB Tests for L{TopWindow}, the root window container class. cgg}tfd|j}|jg|j|g|j|jg|jt |d|j|jg|jt |d|j |jt d|j|g|j|jt d|jt |dy)z Verify that L{TopWindow.repaint} schedules an actual paint to occur using the scheduling object passed to its initializer. c&jdS)N)append)paintss@/usr/lib/python3/dist-packages/twisted/conch/test/test_window.pyz5TopWindowTests.test_paintScheduling..st!4N)rr assertEqualrepaintlenpop)self scheduledrootrs @rtest_paintSchedulingz#TopWindowTests.test_paintSchedulings   02 4i6F6FG $ B'  $ Y+  $ Y+   Va( B'  Va( Y+rNreturnNone)__name__ __module__ __qualname____doc__rrrr r s !,rr ceZdZdZddZy)ScrolledAreaTestsz Tests for L{ScrolledArea}, a widget which creates a viewport containing another widget and can reposition that viewport using scrollbars. ct}t|}|j|j|j|j|jj|y)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)rrassertIsparent _viewport)rwidgetscrolleds r test_parentzScrolledAreaTests.test_parent;sG ' fmmX%7%78 h((//:rNr)rrr r!r+r"rrr$r$5s  ;rr$N) r! __future__rtypingrtwisted.conch.insults.windowrrrtwisted.trial.unittestrr r$r"rrr0s4#LL+&,X&,R;;r