Files app/Audio Player: Prepare integration test harness for JS modules
Change runtime_loaded_test_util.js to avoid referring to global types or names to prepare to run the background pages as JS modules. When running as JS modules these global names aren't available. Move to use an API defined in the `window.background` which is the interface BackgroundBase. Change the functions using getVolumeManager() to use async/await to improve their readability. Note that test.util.async.unmount() was invalidly calling the volumeManager.unmount() with callback. Fix by calling the callback after the unmount() is finished. Change test_util_base.js to expose the required dependencies to runtime_loaded_test_util.js because when running as JS modules those aren't visible when loading the runtime_loaded_test_util.js. Bug: 1133186 Change-Id: I9b5a52f6ca88cc13881862132d6e331c0dec2f57 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537256 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Jeremie Boulic <jboulic@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#827748}
Showing
Please register or sign in to comment