incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ent <p...@adobe.com>
Subject Re: [jira] [Updated] (FLEX-33173) Mustella DragManager Patch
Date Fri, 24 Aug 2012 14:31:42 GMT
You should also make sure the area is visible. I noticed on some DataGrid
tests yesterday that the Canvas containing the DataGrids was too short. By
making the container taller it exposed the DataGrid and the mouse events
worked correctly (I'll put this into the Mustella wiki). This probably
happened because the fonts changed and the size of the DataGrid changed.

--peter

On 8/24/12 10:23 AM, "Alex Harui" <aharui@adobe.com> wrote:

>I suspect that the tests need their mouse events localX/localY adjusted so
>the mouseMove actually causes a drag and the dragProxy to be created.
>
>
>On 8/24/12 6:51 AM, "Cyrill Zadra" <cyrill.zadra@gmail.com> wrote:
>
>> Hi peter
>> 
>> Cool.. thanks for testing my patch. Well those errors I had at the end
>>too.
>> But after few hours investigation I couldn't find a way to get those
>>tests
>> working except if removed alle the
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy" attributes.
>> Always the first test step that uses waitTarget works. Here a example.
>> 
>> Example 1
>> 
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="100"
>> localY="75" buttonDown="true"
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy" />
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="200"
>> localY="75" buttonDown="true"
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy"
>> waitEvent="move"/>  <--- Second test steps fails. dragProxy is not found
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="260"
>> localY="75" buttonDown="true"
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy"
>> waitEvent="move"/>
>> 
>> Example 2
>> 
>> When I remove the waitTarget on the first step the dragProxy is not
>>found
>> at third test step.
>> 
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="100"
>> localY="75" buttonDown="true" />
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="200"
>> localY="75" buttonDown="true"
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy"
>> waitEvent="move"/>
>>  <DispatchMouseEvent target="stage" type="mouseMove" localX="260"
>> localY="75" buttonDown="true"
>> waitTarget="mx.managers::DragManager.mx_internal:dragProxy"
>> waitEvent="move"/> <-- Third Steps fails
>> 
>> 
>> 
>> cyrill
>> 
>> On Fri, Aug 24, 2012 at 3:36 PM, Peter Ent <pent@adobe.com> wrote:
>> 
>>> The `patch -p1 < Š..` command did the trick. The curl + patch gave me
>>> errors about not finding a file to patch. Nevertheless, the second
>>>command
>>> worked.
>>> 
>>> That said, running
>>> 
>>> Gave me these failures:
>>>     [java] Managers/DragManager/Halo/DragManager_Cursors_RTL
>>> DragManager_Mirroring_copyCursor Failed DispatchMouseEvent(body:step 4)
>>> Target mx.managers::DragManager.mx_internal:dragProxy not found
>>>      [java] Managers/DragManager/Halo/DragManager_Cursors_RTL
>>> DragManager_Mirroring_moveCursor Failed DispatchMouseEvent(body:step 4)
>>> Target mx.managers::DragManager.mx_internal:dragProxy not found
>>>      [java] Managers/DragManager/Halo/DragManager_Cursors_RTL
>>> DragManager_Mirroring_rejectCursor Failed DispatchMouseEvent(body:step
>>>4)
>>> Target mx.managers::DragManager.mx_internal:dragProxy not found
>>> 
>>> 
>>> 
>>> --peter
>>> 
>>> On 8/23/12 6:52 PM, "Justin Mclean" <justin@classsoftware.com> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> What OS are you and what version of patch are you using?
>>>> 
>>>> On OSX Lion with patch 2.5.8 both of these worked for me:
>>>> 
>>>> curl
>>>> 
>>> 
>>>https://issues.apache.org/jira/secure/attachment/12541538/0003-fixed-Til
>>>eL
>>>> ist-and-DragManager-tests-in-DragManager_.patch | patch -p1
>>>> 
>>>> patch -p1 <
>>>> 
>>>>attachment/12541538/0003-fixed-TileList-and-DragManager-tests-in-DragMa
>>>>nag
>>>> er_.patch
>>>> 
>>>> (No "." required btw).
>>>> 
>>>> Thanks,
>>>> Justin
>>> 
>>> 
>
>-- 
>Alex Harui
>Flex SDK Team
>Adobe Systems, Inc.
>http://blogs.adobe.com/aharui
>


Mime
View raw message