• Noel Gordon's avatar
    [quickview] Add UTF-8 text file preview test · fc1b962d
    Noel Gordon authored
    Load a file containing UTF-8 and other characters in the preview panel
    and wait for the <webview> to load and display the file content [1].
    
    Read the displayed text content and verify. Test is a PASS if the text
    content of the <webview> contains 'їсти मुझे |∊🙂\n' and the right
    file size "191 bytes" is shown in the quick view metadata box.
    
    [1] Note: the test file must have a file extension that is known to be
    text (an extension that files app deems to be text) to enable UTF-8 in
    the preview panel <webview> renderer.
    
    Test: browser_tests --gtest_filter="*openQuickViewUtf8Text"
    Bug: 1064855
    Change-Id: I7c07b7f98922a1bb93ea2b46c3bc93dd4ee9085d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426084
    Auto-Submit: Noel Gordon <noel@chromium.org>
    Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
    Commit-Queue: Noel Gordon <noel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#810033}
    fc1b962d
file_manager_browsertest.cc 45.1 KB