Closed Bug 733585 Opened 14 years ago Closed 8 years ago

Provide an easy framework for testing html5 drag&drop functionality

Categories

(Testing :: Mochitest, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ttaubert, Unassigned)

Details

Attachments

(1 file)

1.12 KB, application/vnd.mozilla.xul+xml
Details
While trying to write a test for a feature implementing the HTML 5 drag&drop API I had quite a hard time initiating a real dnd session. Furthermore one needs to fire almost all events involved manually. Ideally, we'd only have to specify the core mouse actions a user performs (mousedown, -move, -up), provide pointer coordinates and everything is taken care of.
We already have one. Did you see my comment in bug 723121?
Sorry, yes I saw your comment but forgot to reply in the bug. So the thing is that synthesizeDragStart() for example doesn't work for me at all (in about:newtab). I have no idea what I'm doing wrong but mousedown/move/up as a sequence doesn't initiate a drag/drop action for me. So I ended up sending direct dragstart events to see if they're ignored or accepted.
Attached file sample test —
The following sample test seems to work. Just change the array argument to the data you expect and compare the result.
Mass closing mochitest bugs that haven't had activity in the past 5 years. Please re-open or file a new bug with modern context if this is still relevant.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: