commit | 432976afd3b4952ad28595b561febd4eaa572ef6 | [log] [tgz] |
---|---|---|
author | Dan Beam <dbeam@chromium.org> | Tue Dec 04 07:32:54 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 04 07:32:54 2018 |
tree | 54faf0a68a253946eaa1ede05bc295e1f6b56acc | |
parent | a34286212c15ab586ecadb9cfbc0e02596d9b6e2 [diff] |
Dark Mode: make a testable WebUIDataSource for unit tests There was no easy way to get at the set load time data keys/values nor the $i18n{} placeholder strings. My upcoming work for dark mode requires a key be set whether or not dark mode is enabled or on. I'm adding TestWebUIDataSource in hopes that it's more generically useful, as TestWebUI has been. Example use here: https://crrev.com/c/1354685 R=sky@chromium.org BUG=883049 Change-Id: I2214fcbd4693f82e44d0a0e679c993391c64fba8 Reviewed-on: https://chromium-review.googlesource.com/c/1357612 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#613461}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .