[dragdrop] Add html.drag-drop-active class tests
After CL:2262772, when a drag drop operation is active over FilesApp, a CSS .drag-drop-active class is added to the root <html> element, and is removed when the drag drop operation ends. Add html.drag-drop-active tests to test its addition and removal when a drag drop operation begins and ends. There are two end cases to test: drag drop ends with a dragleave event, or with a drop event. Add tests for both cases: transferDragDropActiveLeave, transferDragDropActiveDrop. Note: since file-list can navigate (logically any time on a bot) due to file_transfer_controller's drag target hover time, we use #file-list as the source when calling fakeDragLeaveOrDrop. No-try: true Bug: 1062902, 1002394 Change-Id: I1426e769b33d1d5a72a1321fdc3319ae940cf31d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275979 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Alex Danilo <adanilo@chromium.org> Reviewed-by:
Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#784389}
Showing
Please register or sign in to comment