[dragdrop] Add FakeDragLeaveOrDrop test helper
Test helper fakeDragAndDrop has an option to hover the drop target and skip the drop and dragend event sending part. The browser thinks drag- drop operations are still active on the page in that case. Add fakeDragLeaveOrDrop helper to terminate drag-drop operations: send a dragleave or drop event to the target, and then send a dragend event to the source. Tbr: adanilo Bug: 1062902 Change-Id: Id2ff6d8addbdcb0bce8625ff3e59b0d28712b94f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275974Reviewed-by:Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Auto-Submit: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#784268}
Showing
Please register or sign in to comment