• Noel Gordon's avatar
    [dragdrop] Add html.drag-drop-active class tests · 5fe998dc
    Noel Gordon authored
    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: default avatarAlex Danilo <adanilo@chromium.org>
    Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#784389}
    5fe998dc
file_manager_browsertest.cc 43.1 KB