• Dominik Röttsches's avatar
    Add a BrowserTest comparing matched fonts using DevTools protocol · bedc36ac
    Dominik Röttsches authored
    For issue 828317 we need an end to test for checking whether the correct
    fonts have been selected for @font-face { src: local(<fontname>) }
    rules. Since this cannot be reliable verified with web platform API, I
    am using DevTools to connect to the content instance and retrieve
    information about the selected fonts, just like in the style panel of
    DevTools. The DevTools protocol communication is modeled after
    content/browser/devtools/protocol/devtools_protocol_browsertest.cc
    
    I appreciate feedback on whether I should duplicate this DevTools
    communication code here, whether there is an easier way to achieve this,
    or whether we should factor out the relevant parts of
    content/browser/devtools/protocol/devtools_protocol_browsertest.cc into
    a separate file that I can reuse here for the FontUniqueNameBrowserTest.
    
    Bug: 874059
    Change-Id: I4a2beeb81a3b5e4cec68cf196fcf0ebf29287d38
    Reviewed-on: https://chromium-review.googlesource.com/1174540Reviewed-by: default avatarPavel Feldman <pfeldman@chromium.org>
    Commit-Queue: Dominik Röttsches <drott@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#585916}
    bedc36ac
BUILD.gn 91.5 KB