asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T  {fc@sdZddlZddlmZddlmZmZmZmZddl m Z ddl m Z ddlmZdejfd YZed krejd d d d ndS(sUnittests for idlelib/SearchDialogBase.py Coverage: 99%. The only thing not covered is inconsequential -- testing skipping of suite when self.needwrapbutton is false. iN(trequires(tTexttTktTopleveltFrame(t SearchEngine(tSearchDialogBase(tFunctSearchDialogBaseTestcBseZedZedZdZdZdZdZdZ dZ dZ d Z d Z d Zd Zd ZRS(cCstdt|_dS(Ntgui(RRtroot(tcls((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt setUpClasss cCs|jj|`dS(N(R tdestroy(R ((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt tearDownClass s cCs:tj|j|_tjd|jd|j|_dS(NR tengine(tseRR RtsdbRtdialog(tself((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pytsetUp%scCs|jjdS(N(Rtclose(R((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttearDown)scCsd|j_t|j}t|}|jj||j|jjj d|jj |j|jjj d|jj|dd|j|jj j d|j |jdS(Ntnormalt withdrawnt searchphrasethello(tNoneRtdefault_commandRR Rtopent assertEqualttoptstateRtenttgettupdate_idletasksR (Rttoplevelttext((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_open_and_close,s    cCst|j_t|j_t|j_t|j_d|j_|jj|j |jjj |j |jjj |j |jjj |j |jjj dS(N( RRtcreate_entriestcreate_option_buttonstcreate_other_buttonstcreate_command_buttonsRRtcreate_widgetst assertTruetcalled(R((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_widgets<s  cCs|j}d|j_t|j|j_|jjdd\}}||dd|j|jd|j }|t |dd|t |dd|t |dd|t |d d||jjddS( NisTest:RR%trowtcolumnitrowspant columnspan( RRR/RR Rt make_entrytassertInR"t grid_infotint(Rtequaltentrytlabeltegi((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_entryJs   cCsId|j_|jjd|jj|j|jjjddS(NiR(RR/RtsetpatR'R4R!R"(R((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_entriesYs  cCsd|j_t|j|j_|jj\}}|j|d|j|t|jjd\}}|j|dd|j|tdS(Nitt testlabelR%( RR/RR Rt make_frameRtassertIsInstanceR(RtframeR9((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_frame_s cCs(t|j|j_d|j_|S(Ni(RR RRR/(Rtmeth((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pytbtn_test_setupjs c Cs|j}xdD]}x3|j|j|j|jfD]}|j|q5W|j|jj\}}xt ||j D]\}}|\}}|j |d||j |j ||dkr|j n |j|j |j d|q}WqWdS(NiiR%(ii(RtrevartcasevartwordvartwrapvartsetRERR(tzipt pack_slavesRR"tdeselecttselect( RteR tvarRBtoptionstspectbuttonR9((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_option_buttonsos  %"    c Csx ttfD]}|jj}|j||j|jj\}}|j}xt ||D]\}}|\}} |j |d| ||krc|j |j |||j |j |j d||d|j |j |j |qcqcWq WdS(NR%i( tFalsetTrueRtbackvarRJRERR)RLRKRR"RN( RR RPRBtotherstbuttonsRRRStvalR9((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_other_buttonss     cCs`t|j|j_t|jj|j_|jjd|jj}|j|dddS(NtTestR%( RR RRRt buttonframet make_buttonRR(Rtbtn((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_buttonscCsa|jjd}x7|jjjD]#}|ddkr&|d}q&q&W|jd|dS(NR>R%Rtcommand(RR*R]twinfo_childrenR4(Rtclosebuttoncommandtchild((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_create_command_buttonss  (t__name__t __module__t classmethodR RRRR&R.R;R=RCRERTR[R`Re(((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyRs          t__main__t verbosityitexit(t__doc__tunittestttest.test_supportRtTkinterRRRRtidlelibRRRRtidlelib.idle_test.mock_idleRtTestCaseRRftmain(((s?/usr/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyts "