• Alex Danilo's avatar
    Integration test for propagation of error dismiss · 3ff721ae
    Alex Danilo authored
    Test for CL:1943777 behavior.
    
    The background page for FilesApp stores state for file operations in
    progress, as well as error states. This information is propagated to
    all the Files App foreground windows during their lifetime, and also
    propagated to any newly created foreground windows.
    
    The background progress center has 2 callback functions for changing
    state - one for cancel of an operation in progress, the other for
    dismissal of an error state.
    
    This test triggers an error state, simulates a click on the 'dismiss'
    button on the error panel that is displayed in the foreground window. It
    then closes the foreground window and opens a new one to check the error
    panel is not displayed. Detection of the lack of an error panel is done
    by triggering a copy operation that never ends and checking for that
    panel. If the error had persisted, it would be present when the copy
    panel appeared.
    
    Bug: 990919
    Tests: browser_tests --gtest_filter="*transferDismissedErrorIsRemembered"
    Change-Id: I38789d4e621801c8a03c9e7f606d841830332b1e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1950372
    Commit-Queue: Alex Danilo <adanilo@chromium.org>
    Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#723597}
    3ff721ae
transfer.js 24.4 KB