# HG changeset patch # User John Beck # Date 1424382722 28800 # Node ID 469420aae5d10dd42a89b4c1b54ea0a40aa84a73 # Parent 660b1766a5b43eec7fbe8901411c407b89c7b9d6 20460977 tk should have some master test results to compare against diff -r 660b1766a5b4 -r 469420aae5d1 components/tcl/tk/Makefile --- a/components/tcl/tk/Makefile Thu Feb 19 09:53:43 2015 -0800 +++ b/components/tcl/tk/Makefile Thu Feb 19 13:52:02 2015 -0800 @@ -61,7 +61,15 @@ CONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)" CONFIGURE_OPTIONS.64 += --enable-64bit +COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master COMPONENT_TEST_TARGETS = test +COMPONENT_TEST_TRANSFORMS += \ + '-e "s|^.*$(CC).*$$|XXX_CC_XXX|"' \ + '-e "s|^.*tcl/build/$(MACH$(BITS)).*$$|XXX_CC_XXX|g"' \ + '-e "s|^cc: Warning: -xarch=v9 is deprecated.*$$|XXX_CC_XXX|g"' \ + '-e "/^XXX_CC_XXX$$/d"' \ + '-e "/^Tests began at .*$$/d"' \ + '-e "/^Tests ended at .*$$/d"' ASLR_MODE = $(ASLR_ENABLE) @@ -87,7 +95,6 @@ $(CONFIGURE_32): ../tcl/build/$(MACH32)/.built $(CONFIGURE_64): ../tcl/build/$(MACH64)/.built - REQUIRED_PACKAGES += runtime/tcl-8 REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/math diff -r 660b1766a5b4 -r 469420aae5d1 components/tcl/tk/test/results-all.master --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/tcl/tk/test/results-all.master Thu Feb 19 13:52:02 2015 -0800 @@ -0,0 +1,945 @@ +make[1]: Entering directory `$(@D)' +rm -f tkTestInit.o +mv tkAppInit.o tkTestInit.o +make[2]: Entering directory `$(@D)' +make[2]: Leaving directory `$(@D)' +Tests running in interp: $(@D)/tktest +Tests located in: $(SOURCE_DIR)/tests +Tests running in: $(@D) +Temporary files stored in $(@D) +Test files sourced into current interpreter +Running tests that match: * +Skipping test files that match: l.*.test +Only running test files that match: *.test +bell.test +Bell should ring now ... +bgerror.test +bind.test +bitmap.test +border.test +button.test +canvImg.test +canvPs.test +canvRect.test +canvText.test +canvWind.test +canvas.test +choosedir.test +clipboard.test +clrpick.test +cmds.test +color.test +config.test +cursor.test +dialog.test +embed.test +entry.test +event.test +filebox.test +focus.test + + +==== focus-5.1 ChangeXFocus procedure, don't take focus unless have it FAILED +==== Contents of test case: + + focusSetup + focus -force .t + update + set result [focus] + send [dobg {tk appname}] {focus -force .; update} + lappend result [focus] + focus .t.b2 + update + lappend result [focus] + +---- Result was: +.t .t {} +---- Result should have been (exact matching): +.t {} {} +==== focus-5.1 FAILED + +focusTcl.test +font.test + + +==== font-4.9 font command: actual FAILED +==== Contents of test case: + + # (objc > 3) so objPtr = objv[3 + skip] + string tolower [font actual {-family times} -family] + +---- Result was: +times new roman +---- Result should have been (exact matching): +times +==== font-4.9 FAILED + + + +==== font-24.5 Tk_ComputeTextLayout: break line FAILED +==== Contents of test case: + + .b.l config -text "000\t00000" -wrap [expr 9*$ax] + set x [getsize] + .b.l config -wrap 0 + set x + +---- Result was: +63 28 +---- Result should have been (exact matching): +56 28 +==== font-24.5 FAILED + + + +==== font-44.1 TkFontGetPixels: size < 0 FAILED +==== Contents of test case: + + font actual {times -12} -size + +---- Result was: +-12 +---- Result should have been (exact matching): +24 +==== font-44.1 FAILED + +frame.test +geometry.test +get.test +grab.test +grid.test +id.test +image.test +imgBmap.test +imgPPM.test +imgPhoto.test +listbox.test +main.test +menu.test +menuDraw.test +menubut.test +message.test +msgbox.test +obj.test +oldpack.test +option.test +pack.test +panedwindow.test +place.test +raise.test +safe.test +scale.test +scrollbar.test + + +==== scrollbar-3.36 ScrollbarWidgetCmd procedure, "fraction" option FAILED +==== Contents of test case: + + format {%.6g} [.s fraction 4 179] + +---- Result was: +0.976048 +---- Result should have been (exact matching): +1 +==== scrollbar-3.36 FAILED + + + +==== scrollbar-3.38 ScrollbarWidgetCmd procedure, "fraction" option FAILED +==== Contents of test case: + + format {%.6g} [.s fraction 4 178] + +---- Result was: +0.97006 +---- Result should have been (exact matching): +0.993711 +==== scrollbar-3.38 FAILED + + + +==== scrollbar-6.12 ScrollbarPosition procedure FAILED +==== Contents of test case: + + .s identify 8 19 + +---- Result was: +trough1 +---- Result should have been (exact matching): +arrow1 +==== scrollbar-6.12 FAILED + + + +==== scrollbar-6.29 ScrollbarPosition procedure FAILED +==== Contents of test case: + + .s identify 8 180 + +---- Result was: +trough2 +---- Result should have been (exact matching): +arrow2 +==== scrollbar-6.29 FAILED + + + +==== scrollbar-6.35 ScrollbarPosition procedure FAILED +==== Contents of test case: + + .s identify 18 100 + +---- Result was: + +---- Result should have been (exact matching): +trough2 +==== scrollbar-6.35 FAILED + + + +==== scrollbar-6.44 ScrollbarPosition procedure FAILED +==== Contents of test case: + + .t.s identify 100 18 + +---- Result was: + +---- Result should have been (exact matching): +trough2 +==== scrollbar-6.44 FAILED + +select.test +send.test +spinbox.test + + +==== spinbox-3.70 SpinboxWidgetCmd procedure, "xview" widget command FAILED +==== Contents of test case: + + .e xview moveto 0.5 + format {%.6f %.6f} {*}[.e xview] + +---- Result was: +0.505376 0.720430 +---- Result should have been (exact matching): +0.505376 0.72043 +==== spinbox-3.70 FAILED + + + +==== spinbox-21.1 spinbox button, out of range checking FAILED +==== Contents of test case: + + destroy .e + spinbox .e -from -10 -to 20 -increment 2 + set out {} + lappend out [.e get]; # -10 + .e delete 0 end + .e insert 0 25; # set outside of range + .e invoke buttondown; # should constrain + lappend out [.e get]; # 20 + .e delete 0 end + .e insert 0 25; # set outside of range + .e invoke buttonup; # should constrain + lappend out [.e get]; # 20 + .e delete 0 end + .e insert 0 -100; # set outside of range + .e invoke buttonup; # should constrain + lappend out [.e get]; # -10 + .e delete 0 end + .e insert 0 -100; # set outside of range + .e invoke buttondown; # should constrain + lappend out [.e get]; # -10 + .e delete 0 end + .e insert 0 bogus; # set to a bogus value + .e invoke buttondown; # should use fromValue + lappend out [.e get]; # -10 + .e delete 0 end + .e insert 0 19; # set just inside of range + .e invoke buttonup; # no wrap + lappend out [.e get]; # 20 + .e invoke buttonup; # no wrap + lappend out [.e get]; # 20 + .e invoke buttondown + lappend out [.e get]; # 18 + .e delete 0 end + .e insert 0 -9; # set just inside of range + .e invoke buttondown; # no wrap + lappend out [.e get]; # -10 + .e invoke buttondown; # no wrap + lappend out [.e get]; # -10 + .e invoke buttonup; # no wrap + lappend out [.e get]; # -8 + + .e configure -wrap 1 + .e delete 0 end + .e insert 0 19; # set just inside of range + .e invoke buttonup; # wrap + lappend out [.e get]; # -10 + .e invoke buttonup + lappend out [.e get]; # -8 + .e invoke buttondown + lappend out [.e get]; # -10 + .e delete 0 end + .e insert 0 -9; # set just inside of range + .e invoke buttondown; # wrap + lappend out [.e get]; # 20 + .e invoke buttondown + lappend out [.e get]; # 18 + .e invoke buttonup; # no wrap + lappend out [.e get]; # 20 + + +---- Result was: +0 20 20 -10 -10 -10 20 20 18 -10 -10 -8 -10 -8 -10 20 18 20 +---- Result should have been (exact matching): +-10 20 20 -10 -10 -10 20 20 18 -10 -10 -8 -10 -8 -10 20 18 20 +==== spinbox-21.1 FAILED + +text.test +textBTree.test +textDisp.test + + +==== textDisp-32.2 elide and tags FAILED +==== Contents of test case: + + pack [text .tt -height 30 -width 100 -bd 0 -highlightthickness 0 -padx 0] + .tt insert end {test text using tags 1 and 3 } {testtag1 testtag3} {[this bit here uses tags 2 and 3]} {testtag2 testtag3} + update + # indent left margin of tag 1 by 20 pixels + # text should be indented + .tt tag configure testtag1 -lmargin1 20 ; update + #1 + set res {} + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + # hide tag 1, remaining text should not be indented, since + # the indented tag and character is hidden. + .tt tag configure testtag1 -elide 1 ; update + #2 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + # reset + .tt tag configure testtag1 -lmargin1 0 + .tt tag configure testtag1 -elide 0 + # indent left margin of tag 2 by 20 pixels + # text should not be indented, since tag1 has lmargin1 of 0. + .tt tag configure testtag2 -lmargin1 20 ; update + #3 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + # hide tag 1, remaining text should now be indented, but + # the bbox of 1.0 should have zero width and zero indent, + # since it is elided at that position. + .tt tag configure testtag1 -elide 1 ; update + #4 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + # reset + .tt tag configure testtag2 -lmargin1 {} + .tt tag configure testtag1 -elide 0 + # indent left margin of tag 3 by 20 pixels + # text should be indented, since this tag takes + # precedence over testtag1, and is applied to the + # start of the text. + .tt tag configure testtag3 -lmargin1 20 ; update + #5 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + # hide tag 1, remaining text should still be indented, + # since it still has testtag3 on it. Again the + # bbox of 1.0 should have 0. + .tt tag configure testtag1 -elide 1 ; update + #6 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + .tt tag configure testtag3 -lmargin1 {} -elide 0 + .tt tag configure testtag1 -elide 1 -lmargin1 20 + #7 + lappend res [list [.tt index "1.0 + 0 displaychars"] [lindex [.tt bbox 1.0] 0] [lindex [.tt bbox "1.0 + 0 displaychars"] 0]] + destroy .tt + set res + +---- Result was: +{1.0 20 20} {1.0 0 0} {1.0 0 0} {1.0 0 0} {1.0 20 20} {1.0 0 0} {1.0 20 20} +---- Result should have been (exact matching): +{1.0 20 20} {1.29 0 0} {1.0 0 0} {1.29 0 20} {1.0 20 20} {1.29 0 20} {1.0 20 20} +==== textDisp-32.2 FAILED + +textImage.test + + +==== textImage-3.2 delayed image management FAILED +==== Contents of test case: + + catch { + image create photo small -width 5 -height 5 + small put red -to 0 0 4 4 + } + catch {destroy .t} + text .t -font test_font -bd 0 -highlightthickness 0 -padx 0 -pady 0 + pack .t + .t image create end -name test + update + set result "" + lappend result [.t bbox test] + .t image configure test -image small -align top + update + lappend result [.t bbox test] + +---- Result was: +{0 11 0 0} {0 0 5 5} +---- Result should have been (exact matching): +{} {0 0 5 5} +==== textImage-3.2 FAILED + +textIndex.test +textMark.test +textTag.test + + +==== textTag-15.1 TkTextBindProc FAILED +==== Contents of test case: + + bind .t {lappend x up} + .t tag bind x {lappend x x-up} + .t tag bind y {lappend x y-up} + set x {} + .t tag add x 2.0 2.4 + .t tag add y 4.3 + event gen .t