Tast's chrome package should support loading arbitrary unpacked extensions |
||
Issue descriptionThe chrome package in Tast should support loading unpacked extensions that have been written to disk by tests. It's generally preferable for tests to use the built-in extension available via Chrome.TestAPIConn, but custom extensions may be needed in some cases (e.g. tests that need to use a background page to interact with the clipboard).
,
Dec 15
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/da2358df27f9b1c3b2f04678e2c486b8007cd4dc commit da2358df27f9b1c3b2f04678e2c486b8007cd4dc Author: Daniel Erat <derat@chromium.org> Date: Sat Dec 15 20:39:14 2018 tast-tests: Add chrome.UnpackedExtension. Add a new chrome.UnpackedExtension function that returns an option that can be passed to chrome.New to load an unpacked extension. Also add a new example.ChromeExtension test that demonstrates writing, loading, and using an unpacked extension. BUG= chromium:915061 TEST=unit tests pass; also verified that new example.ChromeExtension test and existing graphics.ScreenshotChrome test (which uses the built-in test extension) pass Change-Id: I65a1ba07815c556de422b8ea79a9b4d6771ed0ba Reviewed-on: https://chromium-review.googlesource.com/1377590 Commit-Ready: Dan Erat <derat@chromium.org> Tested-by: Dan Erat <derat@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> [add] https://crrev.com/da2358df27f9b1c3b2f04678e2c486b8007cd4dc/src/chromiumos/tast/local/bundles/cros/example/chrome_extension.go [modify] https://crrev.com/da2358df27f9b1c3b2f04678e2c486b8007cd4dc/src/chromiumos/tast/local/chrome/extensions_test.go [add] https://crrev.com/da2358df27f9b1c3b2f04678e2c486b8007cd4dc/src/chromiumos/tast/local/bundles/cros/example/data/chrome_extension_manifest.json [modify] https://crrev.com/da2358df27f9b1c3b2f04678e2c486b8007cd4dc/src/chromiumos/tast/local/chrome/chrome.go [modify] https://crrev.com/da2358df27f9b1c3b2f04678e2c486b8007cd4dc/src/chromiumos/tast/local/chrome/extensions.go
,
Dec 16
|
||
►
Sign in to add a comment |
||
Comment 1 by derat@chromium.org
, Dec 14