MD Settings: Use a browser proxy from the languages page. Re-enable test

Desktop / Chromium - dpapad [chromium.org] - 19 April 2017 21:41 EDT

- Add a languages_browser_proxy.js- Put chrome.send, languageSettingsPrivate and inputMethodsPrivate behind the proxy.
- Use the proxy to interact with the browser (both chrome.send and private APIs).- Implement a fake InputMethodPrivate API and update tests to use it (previously tests had been calling to the prod chrome.inputMethodPrivate API).
- Re-enable CrSettingsLanguagesTest.Languages.

BUG=692356 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2827553002 Cr-Commit-Position: refs/heads/master@{#465853}

3a1f5619 MD Settings: Use a browser proxy from the languages page. Re-enable test.
.../languages_page/compiled_resources2.gyp | 14 +++-
.../settings/languages_page/languages.html | 1 +
.../resources/settings/languages_page/languages.js | 58 +++++++++--------
.../languages_page/languages_browser_proxy.html | 2 +
.../languages_page/languages_browser_proxy.js | 76 ++++++++++++++++++++++
.../resources/settings/settings_resources.grd | 7 ++
.../data/webui/settings/cr_settings_browsertest.js | 3 +-
.../webui/settings/fake_input_method_private.js | 37 +++++++++++
chrome/test/data/webui/settings/languages_tests.js | 67 +++++++++++++++----
9 files changed, 223 insertions(+), 42 deletions(-)

Upstream: git.chromium.org


  • Share