ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ V~gc@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((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt setUpClasss cCs|jj|`dS(N(R tdestroy(R ((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyt tearDownClass s cCs:tj|j|_tjd|jd|j|_dS(NR tengine(tseRR RtsdbRtdialog(tself((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pytsetUp%scCs|jjdS(N(Rtclose(R((sL/opt/alt/python27/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((sL/opt/alt/python27/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((sL/opt/alt/python27/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((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_entryJs   cCsId|j_|jjd|jj|j|jjjddS(NiR(RR/RtsetpatR'R4R!R"(R((sL/opt/alt/python27/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((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyttest_make_frame_s cCs(t|j|j_d|j_|S(Ni(RR RRR/(Rtmeth((sL/opt/alt/python27/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((sL/opt/alt/python27/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((sL/opt/alt/python27/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((sL/opt/alt/python27/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((sL/opt/alt/python27/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(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyRs          t__main__t verbosityitexit(t__doc__tunittestttest.test_supportRtTkinterRRRRtidlelibRRRRtidlelib.idle_test.mock_idleRtTestCaseRRftmain(((sL/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_searchdialogbase.pyts "