Commit ca1517ea authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

[dragdrop] Tests should send a 'dragend' event

The test drag and drop test helper sends a 'dragEnd' event but nothing
responds to that event in files app, nor is it defined in the spec.

Make it spec-conformant: change 'dragEnd' => 'dragend' and the browser
will properly handle it and files app will correctly process it.

Bug: 1062902
Change-Id: I3ed0ba7c7e5f586132dcb88f34e5537ff7587a08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276163
Commit-Queue: Alex Danilo <adanilo@chromium.org>
Auto-Submit: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784244}
parent 32382ed8
...@@ -857,7 +857,7 @@ test.util.async.fakeDragAndDrop = ...@@ -857,7 +857,7 @@ test.util.async.fakeDragAndDrop =
break; break;
case 4: case 4:
if (!skipDrop) { if (!skipDrop) {
event = new DragEvent('dragEnd', sourceOptions); event = new DragEvent('dragend', sourceOptions);
result = source.dispatchEvent(event); result = source.dispatchEvent(event);
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment