[Mono-dev] Win Patches for Datagrid (first here) then idle

Stifu stifu at free.fr
Mon Jun 18 12:10:24 UTC 2012


Steve's click simulation hack is in DataGridViewTest.cs. I wonder if it'd be
possible to refactor it into a helper class, so it can be reused for any
test class.


Rob Wilkens wrote
> 
> Sorry, not a rush on my behalf, but i want to keep this thread alive
> until it's taken care of.
> 
> Will probably go out a few hours mid day today (won't be out as much as
> yesterday; today may be a lunch at the beach day-- dad bought an annual
> beach parking pass and we 'have' to get the most for our money out of
> it), let me know if you need anything from me, and you probably will in
> terms of creating tests.  I just have to figure out how to steal
> Steven's (i think it was him) code for faking mouse button clicks, and
> figure out where to send the clicks in terms of x and y (i have to click
> towards the far left but a little to the right, and then down maybe
> 50-100 pixels on a plus sign to make the sample crash as is and not
> crash with my fix.
> 
> -Rob
> 
> On 06/18/2012 02:42 AM, Stifu wrote:
>> A lot of work ahead, I see.
>>
>> About patch 1... I cannot manage to run the concerned test case with Mono
>> master, for some reason (I get a NullReferenceException in the DataGrid
>> constructor). I can run it with Mono 2.10, though. Rather than a
>> regression
>> (unlikely, DataGrid.cs hasn't been updated for ages), it may be related
>> to
>> the way I build WinForms. So I'll have to figure that out first.
>>
>> I'd rather hang myself than use cygwin again, so I'll just try to build
>> the
>> whole thing on Linux.
>>
>>
>> Rob Wilkens wrote
>>> BTW  -- at least one of my tests (and this is separate from earlier
>>> reply)
>>> would involve checking something visually..  I'm not sure if there is a
>>> trick for that (this is: Where edit boxes were displayed when they
>>> shouldn't be, or columns were displayed when they shouldn't have been).  
>>>
>>> But thanks for your suggestion, i will try to use it for at least where
>>> i
>>> had the crash
>>>
>>> On Jun 17, 2012, at 9:40 PM, Steven Boswell II wrote:
>>>
>>>> See
>>>> mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridViewTest.cs,
>>>> around line 1124.  I had to mimic a mouse-click in order to validate
>>>> one
>>>> of my data-grid-view bug fixes, and code to do that begins on that
>>>> line.
>>>>
>>>> From: Rob Wilkens <robwilkens@>
>>>> To: "mono-devel-list at .ximian" <mono-devel-list at .ximian>; Stifu
>>>> <stifu@> 
>>>> Sent: Sunday, June 17, 2012 6:05 PM
>>>> Subject: [Mono-dev] Win Patches for Datagrid (first here) then idle
>>>>
>>>> [...  If you want me to create a unit test for something you don't see
>>>> a
>>>> unit test for, let me know, but in some cases, clicks are required with
>>>> a
>>>> mouse and i'm not necessarily sure how to create a patch to do that.
>>>> ...]
>>>>
>>>> _______________________________________________
>>>> Mono-devel-list mailing list
>>>> Mono-devel-list at .ximian
>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>> Mono-devel-list at .ximian
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/Win-Patches-for-Datagrid-first-here-then-idle-tp4650027p4650035.html
>> Sent from the Mono - Dev mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at .ximian
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at .ximian
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/Win-Patches-for-Datagrid-first-here-then-idle-tp4650027p4650040.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list