Author: toshok Date: 2007-01-05 13:51:03 -0500 (Fri, 05 Jan 2007) New Revision: 70549
Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/ trunk/mcs/class/Managed.Windows.Forms/Test/automated/Makefile trunk/mcs/class/Managed.Windows.Forms/Test/automated/README trunk/mcs/class/Managed.Windows.Forms/Test/automated/harness.sh trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/0.png trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.png trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.xnr trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.png trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.xnr trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/test.cs trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/0.png trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/test.cs Log: hack for automated X11 testing Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/Makefile =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/Makefile 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/Makefile 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,17 @@ + +all: test + +baseline: + @for subdir in `ls -d test*`; do \ + rm -f $$subdir/*.png; \ + ./harness.sh baseline $$subdir; \ + done + +test: + @for subdir in `ls -d test*`; do \ + case $$subdir in \ + test2* ) (cd $$subdir && gmcs -debug -pkg:dotnet test.cs);; \ + test* ) (cd $$subdir && mcs -debug -pkg:dotnet test.cs);; \ + esac; \ + ./harness.sh test $$subdir; \ + done Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/README =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/README 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/README 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,47 @@ +This is my hack for automated UI tests. It requires the following software: + + 1. Xnest (X server in a window). should be packages for your favorite distro. + 2. Xnee (recording/playback of X events): http://www.gnu.org/software/xnee/ + 3. netpbm (specifically xwdtopnm and pnmtopng) + 4. ImageMagick + +1. Adding tests + + this is pretty complicated at the moment, and I haven't checked in anything to do it yet. + + The directory name tells the harness which compiler to use. 1.1 tests should be named + "test-<something>", while 2.0 tests should be named "test2-<something>" + +2. Running the tests + + $ make test + + This will pop up a rather large Xnest window (1000x700), so don't run the tests expecting + to be able to do much else. + + An individual test can also be run (although not from the Makefile): + + $ ./harness.sh test test2-80422 + +3. Checking for failures + + If tests fail, there will be a number of additional files left in the directory. They + are named "result-0.png", "differences-0.png", etc. + + The "result" files are the actual screen dumps of the test run, and the "differences" + files show the regions of differences between the "result" file and the corresponding + baseline. That is, "differences-0.png" highlights the differences between "result-0.png" + and "0.png". + +3. Generating baselines + + The images (0.png, 1.png) in the test directories can be regenerated using the command: + + $ make baseline + + this should only be done when you can verify that the tests are working properly and all + that's changed is the rendering. + + You can also generate baselines for individual tests, using the following command: + + $ ./harness.sh baseline test2-80422 Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/harness.sh =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/harness.sh 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/harness.sh 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,73 @@ +#!/bin/bash + +mode=$1 +subdir=$2 +XNEST_DISPLAY=:5 + +if [ x$mode != "xbaseline" -a x$mode != "xtest" ] ; then + echo unknown mode: $mode + exit 1 +fi + + +cd $subdir + +Xnest -once -geometry 1000x700 -ac $XNEST_DISPLAY >/dev/null 2>&1 & + +echo Running tests in $subdir + +# start up the test and give it some time to appear +export DISPLAY=$XNEST_DISPLAY +mono test.exe 2> /dev/null & +sleep 3 + +steps=`ls *.xnr 2> /dev/null` + +for i in 0 $steps; do + step=`basename $i .xnr` + + resultprefix=result-$step + resultfile=$resultprefix.xwd + resultpng=$resultprefix.png + baseprefix=$step + baseline=$baseprefix.xwd + basepng=$baseprefix.png + differencespng=differences-$step.png + + if test -f $i; then + # replay the recorded data + #/opt/xnee/bin/cnee -display $XNEST_DISPLAY --replay -f $i -rwp > /dev/null 2>&1 + /opt/xnee/bin/cnee -display $XNEST_DISPLAY --replay -f $i > /dev/null 2>&1 + #sleep 1 + fi + + if test x$mode == "xbaseline"; then + echo -n " generating baseline for step $step..." + # take a screendump and store out the new baseline + xwd -silent -display $XNEST_DISPLAY -root -out $baseline > /dev/null + xwdtopnm $baseline 2> /dev/null | pnmtopng -compression 9 2> /dev/null > $basepng + rm -f $baseline + echo done. + elif test x$mode == "xtest"; then + echo -n " step $step..." + + rm -f $resultpng $differencespng + + # take a screendump of the end result + xwd -silent -display $XNEST_DISPLAY -root -out $resultfile 2> /dev/null + xwdtopnm $resultfile 2> /dev/null | pnmtopng -compression 9 2> /dev/null > $resultpng + rm -f $resultfile + + # and compare to our baseline + if diff $resultpng $basepng; then + echo PASSED. + rm -f $resultpng + else + echo FAILED. + convert $resultpng $basepng -compose difference -composite $differencespng + fi + fi +done + +# kill Xnest +kill %1 Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/harness.sh ___________________________________________________________________ Name: svn:executable + * Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595 ___________________________________________________________________ Name: svn:ignore + *.exe *.mdb Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/0.png =================================================================== (Binary files differ) Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/0.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.png =================================================================== (Binary files differ) Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.xnr =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.xnr 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/1.xnr 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,310 @@ +#################################### +# System information # +#################################### +# Date: 2006:10:23 +# Time: 12:15:39 +# Xnee program: cnee +# Xnee version: 2.05.96 +# Xnee home: http://www.gnu.org/software/xnee/ +# Xnee info mailing list: [email protected] +# Xnee bug mailing list: [email protected] +# X version: 11 +# X revision: 0 +# X vendor: The X.Org Foundation +# X vendor release: 60900000 +# Record version major: 1 +# Record version minor: 13 +# OS name: Linux +# OS Release: 2.6.16.21-0.8-smp +# OS Version: #1 SMP Mon Jul 3 18:25:39 UTC 2006 +# Machine: i686 +# Nodename: tinytoph +# Display name: :1 +# Dimension: 1000x700 + + + +############################################## +# Xnee application arguments # +############################################## +# /opt/xnee/bin/cnee -display :1 --record --mouse --keyboard -o 1.xnr + + +############################################## +# Displays # +############################################## +# display :1 +distribute + + +############################################## +# Files # +############################################## +out-file 1.xnr +err-file stderr + + +############################################## +# Key Grabs # +############################################## +# stop-key 0 +# pause-key 0 +# resume-key 0 +# insert-key 0 +# exec-key 0 +# exec-key xnee-exec-no-program + + +############################################## +# Recording limits etc # +############################################## + +events-to-record -1 +data-to-record -1 +seconds-to-record -1 +first-last 0 + +# Record all (including current) clients or only future ones +all-client +# future-clients + +# Store the starting mouse position +# store-mouse-position + + +############################################## +# Resolution # +############################################## + +# Resolution +#recorded-resolution 1000x700 +#replay-resolution 1x1 +#resolution-adjustment 0 + + +############################################## +# Speed # +############################################## + +# Speed +#speed-percent 100 + + +############################################## +# Replaying limits etc # +############################################## + +max-threshold 20 +min-threshold 20 +tot-threshold 40 + + +############################################## +# Feedback # +############################################## +#feedback-none +#feedback-stderr +feedback-xosd + + + +############################################## +# Various # +############################################## + +# Plugin file (0 means none) +plugin 0 + +# Modes (currently not used) +#synchronised-replay 1 + +# Replay offset +#xnee_replay_offset 0x0 + +# Human printout of X11 data (instead of Xnee format) +human-printout 0 + +# Delay before starting record/replay +# time 0 + +# Various +######################################### +# Record settings # +######################################### +# data_flags 7 +# rState 134697528 +# xids[0] 8388608 +# xids[1] 6291456 +# Number of Ranges 1 +# RecordRange[0] +request-range 0-0 +reply-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +delivered-event-range 21-21 +device-event-range 2-6 +error-range 6-6 +0,6,513,699,0,0,0,1978970515 +0,6,501,693,0,0,0,1978970525 +0,6,491,687,0,0,0,1978970536 +0,6,477,679,0,0,0,1978970549 +0,6,463,669,0,0,0,1978970560 +0,6,449,659,0,0,0,1978970572 +0,6,437,649,0,0,0,1978970583 +0,6,425,639,0,0,0,1978970595 +0,6,417,631,0,0,0,1978970606 +0,6,403,619,0,0,0,1978970618 +0,6,393,607,0,0,0,1978970630 +0,6,379,593,0,0,0,1978970641 +0,6,365,579,0,0,0,1978970652 +0,6,353,563,0,0,0,1978970664 +0,6,339,547,0,0,0,1978970676 +0,6,325,531,0,0,0,1978970688 +0,6,313,517,0,0,0,1978970700 +0,6,301,501,0,0,0,1978970711 +0,6,293,489,0,0,0,1978970738 +0,6,281,475,0,0,0,1978970749 +0,6,271,461,0,0,0,1978970761 +0,6,263,449,0,0,0,1978970773 +0,6,253,435,0,0,0,1978970783 +0,6,247,423,0,0,0,1978970795 +0,6,237,411,0,0,0,1978970807 +0,6,229,397,0,0,0,1978970819 +0,6,219,383,0,0,0,1978970830 +0,6,213,375,0,0,0,1978970842 +0,6,207,363,0,0,0,1978970854 +0,6,199,351,0,0,0,1978970866 +0,6,185,325,0,0,0,1978970889 +0,6,181,317,0,0,0,1978970900 +0,6,173,305,0,0,0,1978970912 +0,6,167,295,0,0,0,1978970923 +0,6,161,285,0,0,0,1978970936 +0,6,157,277,0,0,0,1978970947 +0,6,151,269,0,0,0,1978970958 +0,6,147,259,0,0,0,1978970970 +0,6,141,251,0,0,0,1978970982 +0,6,135,243,0,0,0,1978970994 +0,6,131,233,0,0,0,1978971005 +0,6,125,225,0,0,0,1978971017 +0,6,121,215,0,0,0,1978971029 +0,6,117,207,0,0,0,1978971040 +0,6,111,199,0,0,0,1978971052 +0,6,107,189,0,0,0,1978971064 +0,6,101,179,0,0,0,1978971075 +0,6,95,169,0,0,0,1978971087 +0,6,91,159,0,0,0,1978971098 +0,6,87,151,0,0,0,1978971110 +0,6,83,141,0,0,0,1978971121 +0,6,79,133,0,0,0,1978971133 +0,6,75,125,0,0,0,1978971144 +0,6,71,115,0,0,0,1978971156 +0,6,67,107,0,0,0,1978971167 +0,6,66,106,0,0,0,1978971179 +0,6,64,98,0,0,0,1978971191 +0,6,62,90,0,0,0,1978971202 +0,6,58,76,0,0,0,1978971225 +0,6,58,68,0,0,0,1978971237 +0,6,56,60,0,0,0,1978971248 +0,6,52,43,0,0,0,1978971283 +0,6,52,42,0,0,0,1978971294 +0,6,52,44,0,0,0,1978971328 +0,6,52,45,0,0,0,1978971365 +0,6,53,46,0,0,0,1978971405 +0,6,54,47,0,0,0,1978971417 +0,6,55,49,0,0,0,1978971428 +0,6,58,52,0,0,0,1978971452 +0,6,58,53,0,0,0,1978971472 +0,6,59,54,0,0,0,1978971547 +0,6,60,55,0,0,0,1978971643 +0,6,61,56,0,0,0,1978971662 +0,6,61,57,0,0,0,1978971683 +0,6,62,58,0,0,0,1978971695 +0,6,64,60,0,0,0,1978971751 +0,6,64,61,0,0,0,1978971762 +0,6,65,63,0,0,0,1978971821 +0,6,65,64,0,0,0,1978971848 +0,6,66,65,0,0,0,1978971875 +0,6,66,66,0,0,0,1978971896 +0,6,67,67,0,0,0,1978971915 +0,6,67,68,0,0,0,1978971926 +0,6,68,70,0,0,0,1978971945 +0,6,68,71,0,0,0,1978971974 +0,6,69,71,0,0,0,1978972004 +0,6,69,72,0,0,0,1978972023 +0,6,69,73,0,0,0,1978972103 +0,4,0,0,1,0,0,1978972169 +0,5,0,0,1,0,0,1978972202 +NEW-WINDOW:108,134785400:2097155,2097156,2097153,0,10,0:-1208129424x-1080436092+-1080436072+-1210006690:-1080436092,-1080436092: +NEW-WINDOW:108,134785400:2097155,2097171,2097155,0,60,0:-1208129424x-1080436092+-1080436072+-1210006690:-1080436092,-1080436092: +0,6,70,74,0,0,0,1978972488 +0,6,71,75,0,0,0,1978972499 +0,6,72,77,0,0,0,1978972511 +0,6,74,83,0,0,0,1978972522 +0,6,78,89,0,0,0,1978972534 +0,6,84,101,0,0,0,1978972545 +0,6,88,109,0,0,0,1978972557 +0,6,108,149,0,0,0,1978972590 +0,6,116,163,0,0,0,1978972601 +0,6,126,181,0,0,0,1978972613 +0,6,134,197,0,0,0,1978972624 +0,6,144,215,0,0,0,1978972635 +0,6,152,231,0,0,0,1978972647 +0,6,162,249,0,0,0,1978972658 +0,6,170,265,0,0,0,1978972670 +0,6,180,285,0,0,0,1978972681 +0,6,190,301,0,0,0,1978972693 +0,6,198,319,0,0,0,1978972704 +0,6,206,335,0,0,0,1978972716 +0,6,226,373,0,0,0,1978972739 +0,6,232,387,0,0,0,1978972751 +0,6,242,405,0,0,0,1978972762 +0,6,250,421,0,0,0,1978972774 +0,6,260,439,0,0,0,1978972786 +0,6,270,459,0,0,0,1978972798 +0,6,280,477,0,0,0,1978972809 +0,6,290,495,0,0,0,1978972821 +0,6,296,505,0,0,0,1978972833 +0,6,306,523,0,0,0,1978972844 +0,6,312,537,0,0,0,1978972856 +0,6,320,549,0,0,0,1978972868 +0,6,324,557,0,0,0,1978972879 +0,6,330,569,0,0,0,1978972891 +0,6,336,577,0,0,0,1978972903 +0,6,337,578,0,0,0,1978972914 +0,6,341,584,0,0,0,1978972926 +0,6,343,592,0,0,0,1978972961 +0,6,347,598,0,0,0,1978972972 +0,6,351,606,0,0,0,1978973000 +0,6,353,612,0,0,0,1978973020 +0,6,354,614,0,0,0,1978973032 +0,6,356,620,0,0,0,1978973043 +0,6,360,624,0,0,0,1978973055 +0,6,362,630,0,0,0,1978973066 +0,6,364,636,0,0,0,1978973085 +0,6,365,636,0,0,0,1978973098 +0,6,366,637,0,0,0,1978973148 +0,6,367,639,0,0,0,1978973160 +0,6,369,645,0,0,0,1978973172 +0,6,373,651,0,0,0,1978973183 +0,6,377,655,0,0,0,1978973195 +0,6,381,661,0,0,0,1978973207 +0,6,385,667,0,0,0,1978973218 +0,6,389,671,0,0,0,1978973230 +0,6,389,672,0,0,0,1978973242 +0,6,393,678,0,0,0,1978973254 +0,6,397,684,0,0,0,1978973265 +0,6,398,686,0,0,0,1978973277 +0,6,398,687,0,0,0,1978973288 +0,6,399,687,0,0,0,1978973299 +0,6,400,689,0,0,0,1978973311 +0,6,401,690,0,0,0,1978973336 +0,6,401,691,0,0,0,1978973348 +0,6,402,693,0,0,0,1978973359 +0,6,403,694,0,0,0,1978973371 +0,6,403,695,0,0,0,1978973382 +0,6,404,695,0,0,0,1978973393 +0,6,404,696,0,0,0,1978973568 +0,6,405,697,0,0,0,1978973580 +0,6,406,699,0,0,0,1978973592 Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.png =================================================================== (Binary files differ) Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.xnr =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.xnr 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/2.xnr 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,255 @@ +#################################### +# System information # +#################################### +# Date: 2006:10:23 +# Time: 12:15:46 +# Xnee program: cnee +# Xnee version: 2.05.96 +# Xnee home: http://www.gnu.org/software/xnee/ +# Xnee info mailing list: [email protected] +# Xnee bug mailing list: [email protected] +# X version: 11 +# X revision: 0 +# X vendor: The X.Org Foundation +# X vendor release: 60900000 +# Record version major: 1 +# Record version minor: 13 +# OS name: Linux +# OS Release: 2.6.16.21-0.8-smp +# OS Version: #1 SMP Mon Jul 3 18:25:39 UTC 2006 +# Machine: i686 +# Nodename: tinytoph +# Display name: :1 +# Dimension: 1000x700 + + + +############################################## +# Xnee application arguments # +############################################## +# /opt/xnee/bin/cnee -display :1 --record --mouse --keyboard -o 2.xnr + + +############################################## +# Displays # +############################################## +# display :1 +distribute + + +############################################## +# Files # +############################################## +out-file 2.xnr +err-file stderr + + +############################################## +# Key Grabs # +############################################## +# stop-key 0 +# pause-key 0 +# resume-key 0 +# insert-key 0 +# exec-key 0 +# exec-key xnee-exec-no-program + + +############################################## +# Recording limits etc # +############################################## + +events-to-record -1 +data-to-record -1 +seconds-to-record -1 +first-last 0 + +# Record all (including current) clients or only future ones +all-client +# future-clients + +# Store the starting mouse position +# store-mouse-position + + +############################################## +# Resolution # +############################################## + +# Resolution +#recorded-resolution 1000x700 +#replay-resolution 1x1 +#resolution-adjustment 0 + + +############################################## +# Speed # +############################################## + +# Speed +#speed-percent 100 + + +############################################## +# Replaying limits etc # +############################################## + +max-threshold 20 +min-threshold 20 +tot-threshold 40 + + +############################################## +# Feedback # +############################################## +#feedback-none +#feedback-stderr +feedback-xosd + + + +############################################## +# Various # +############################################## + +# Plugin file (0 means none) +plugin 0 + +# Modes (currently not used) +#synchronised-replay 1 + +# Replay offset +#xnee_replay_offset 0x0 + +# Human printout of X11 data (instead of Xnee format) +human-printout 0 + +# Delay before starting record/replay +# time 0 + +# Various +######################################### +# Record settings # +######################################### +# data_flags 7 +# rState 134697528 +# xids[0] 8388608 +# xids[1] 6291456 +# Number of Ranges 1 +# RecordRange[0] +request-range 0-0 +reply-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +extension-request-major-range 0-0 +delivered-event-range 21-21 +device-event-range 2-6 +error-range 6-6 +0,6,401,696,0,0,0,1978977899 +0,6,397,688,0,0,0,1978977910 +0,6,391,680,0,0,0,1978977923 +0,6,385,672,0,0,0,1978977935 +0,6,379,664,0,0,0,1978977947 +0,6,375,656,0,0,0,1978977959 +0,6,369,648,0,0,0,1978977970 +0,6,365,640,0,0,0,1978977982 +0,6,359,632,0,0,0,1978977993 +0,6,353,622,0,0,0,1978978005 +0,6,347,612,0,0,0,1978978017 +0,6,341,600,0,0,0,1978978028 +0,6,335,588,0,0,0,1978978040 +0,6,329,576,0,0,0,1978978052 +0,6,323,564,0,0,0,1978978063 +0,6,315,550,0,0,0,1978978074 +0,6,309,538,0,0,0,1978978086 +0,6,301,522,0,0,0,1978978098 +0,6,295,510,0,0,0,1978978109 +0,6,287,494,0,0,0,1978978135 +0,6,279,478,0,0,0,1978978147 +0,6,271,460,0,0,0,1978978159 +0,6,263,446,0,0,0,1978978171 +0,6,257,430,0,0,0,1978978182 +0,6,251,420,0,0,0,1978978194 +0,6,245,406,0,0,0,1978978205 +0,6,237,392,0,0,0,1978978217 +0,6,231,378,0,0,0,1978978229 +0,6,225,366,0,0,0,1978978240 +0,6,219,356,0,0,0,1978978252 +0,6,209,340,0,0,0,1978978275 +0,6,205,330,0,0,0,1978978287 +0,6,197,318,0,0,0,1978978299 +0,6,191,310,0,0,0,1978978312 +0,6,185,298,0,0,0,1978978324 +0,6,181,290,0,0,0,1978978335 +0,6,175,282,0,0,0,1978978346 +0,6,171,272,0,0,0,1978978358 +0,6,165,264,0,0,0,1978978369 +0,6,161,256,0,0,0,1978978381 +0,6,155,246,0,0,0,1978978392 +0,6,151,238,0,0,0,1978978404 +0,6,147,230,0,0,0,1978978415 +0,6,143,222,0,0,0,1978978427 +0,6,137,214,0,0,0,1978978438 +0,6,133,206,0,0,0,1978978450 +0,6,127,196,0,0,0,1978978461 +0,6,123,188,0,0,0,1978978473 +0,6,119,182,0,0,0,1978978484 +0,6,115,176,0,0,0,1978978495 +0,6,111,168,0,0,0,1978978507 +0,6,107,160,0,0,0,1978978520 +0,6,106,159,0,0,0,1978978531 +0,6,104,153,0,0,0,1978978542 +0,6,103,151,0,0,0,1978978554 +0,6,102,149,0,0,0,1978978566 +0,6,101,147,0,0,0,1978978578 +0,6,99,139,0,0,0,1978978590 +0,6,95,133,0,0,0,1978978601 +0,6,91,124,0,0,0,1978978625 +0,6,91,123,0,0,0,1978978786 +0,4,0,0,1,0,0,1978979097 +0,5,0,0,1,0,0,1978979131 +0,6,91,121,0,0,0,1978979467 +0,6,92,123,0,0,0,1978979517 +0,6,98,129,0,0,0,1978979530 +0,6,108,141,0,0,0,1978979542 +0,6,118,151,0,0,0,1978979554 +0,6,128,165,0,0,0,1978979565 +0,6,140,177,0,0,0,1978979577 +0,6,148,187,0,0,0,1978979588 +0,6,160,201,0,0,0,1978979599 +0,6,168,211,0,0,0,1978979611 +0,6,176,221,0,0,0,1978979622 +0,6,186,231,0,0,0,1978979634 +0,6,194,243,0,0,0,1978979645 +0,6,204,255,0,0,0,1978979657 +0,6,214,269,0,0,0,1978979668 +0,6,224,285,0,0,0,1978979680 +0,6,234,301,0,0,0,1978979692 +0,6,246,319,0,0,0,1978979704 +0,6,258,337,0,0,0,1978979715 +0,6,270,357,0,0,0,1978979727 +0,6,282,373,0,0,0,1978979738 +0,6,294,393,0,0,0,1978979750 +0,6,306,413,0,0,0,1978979761 +0,6,318,431,0,0,0,1978979788 +0,6,328,447,0,0,0,1978979800 +0,6,338,465,0,0,0,1978979812 +0,6,346,481,0,0,0,1978979823 +0,6,356,497,0,0,0,1978979835 +0,6,366,515,0,0,0,1978979846 +0,6,376,533,0,0,0,1978979858 +0,6,386,549,0,0,0,1978979876 +0,6,396,567,0,0,0,1978979882 +0,6,404,581,0,0,0,1978979893 +0,6,412,595,0,0,0,1978979904 +0,6,420,611,0,0,0,1978979916 +0,6,428,623,0,0,0,1978979927 +0,6,434,635,0,0,0,1978979938 +0,6,440,647,0,0,0,1978979950 +0,6,444,655,0,0,0,1978979962 +0,6,450,665,0,0,0,1978979973 +0,6,456,673,0,0,0,1978979985 +0,6,460,679,0,0,0,1978979998 +0,6,464,687,0,0,0,1978980009 +0,6,468,697,0,0,0,1978980022 Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/test.cs =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/test.cs 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test-bug79595/test.cs 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,46 @@ +using System; +using System.Windows.Forms; + +public class principal:Form { + + Button boton1; + Button boton2; + + public principal() { + + boton1 = new Button(); + boton1.Text = "Click here"; + boton1.Top = 10; + boton1.Click += new EventHandler(click1); + this.Controls.Add(boton1); + } + + public void click1(object sender, EventArgs e) { + + // here, the form should be cleared, erasing all the controls, + // but it didn't work. This is the bug + + this.Controls.Clear(); + boton2 = new Button(); + boton2.Text = "Exit test"; + boton2.Top = 60; // put it lower to be sure that it won't overlap the old button + boton2.Click += new EventHandler(click2); + this.Controls.Add(boton2); + } + + public void click2(object sender, EventArgs e) { + + // exit the demo + + this.Close(); + + } + + static public void Main() { + + principal classdemo = new principal(); + Application.Run(classdemo); + + } + +} Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422 ___________________________________________________________________ Name: svn:ignore + *.exe *.mdb Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/0.png =================================================================== (Binary files differ) Property changes on: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/0.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/test.cs =================================================================== --- trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/test.cs 2007-01-05 18:26:51 UTC (rev 70548) +++ trunk/mcs/class/Managed.Windows.Forms/Test/automated/test2-bug80422/test.cs 2007-01-05 18:51:03 UTC (rev 70549) @@ -0,0 +1,34 @@ +using System.Windows.Forms; +using System.Data; +static class Program +{ + static void Main() + { + Application.Run(new Frm()); + } +} + +class Frm : Form +{ + public Frm() + { + DataTable table = new DataTable(); + DataColumn column1 = new DataColumn(); + DataGrid grid = new DataGrid(); + table.Rows.Add(); + grid.Dock = DockStyle.Fill; + table.Columns.Add(column1); + Controls.Add(grid); + + DataGridTableStyle tableStyle = new DataGridTableStyle(); + DataGridColumnStyle colStyle = new DataGridTextBoxColumn(); + // colStyle.MappingName = "Column1"; + tableStyle.GridColumnStyles.Add(colStyle); + grid.TableStyles.Add(tableStyle); + grid.DataSource = table; + table.Columns.Add("another hidden column"); + } +} + + + _______________________________________________ Mono-patches maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-patches
