commit | c46964ab0017aa69d418738183c37e4802bcba38 | [log] [tgz] |
---|---|---|
author | rbpotter <rbpotter@chromium.org> | Fri Jul 19 01:08:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jul 19 01:08:34 2019 |
tree | be3324f2f350e9da9e06f975ff656b22b78edf5b | |
parent | 2f79f009ae1c9db43be96c496be6935593699c17 [diff] |
Web UI: Add chrome://test data source for testing JS modules - Add a test data source that serves files from chrome://test - Autogenerate HTML responses containing a single <script type="module"> with src set to a requested JS file at runtime. Request these responses by preloading chrome://test?module=JS_TEST_FILE.js - Remaining dependencies, other than mocha and mocha adapter, can be imported via the JS test module, instead of using |extraLibraries|. - Map requests for chrome://test URLs to the appropriate Web UI controller using a new webuiHost parameter for tests. Bug: 968804 Change-Id: I5b409bb54da5611be68fe590176edec3c7b668e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700294 Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#678925}
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 .