Commit 3521665c authored by Josiah K's avatar Josiah K Committed by Commit Bot

Fix permissions error in RemovesAndAddsAutoclick test

Change-Id: Ie9fc4da6ed9b2b6c2bbcc56ae6de5a088a5760b3
AX-Relnotes: n/a.
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454256
Commit-Queue: Josiah Krutz <josiahk@google.com>
Auto-Submit: Josiah Krutz <josiahk@google.com>
Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814879}
parent 28ede294
......@@ -112,6 +112,13 @@ TEST_F('AutoclickE2ETest', 'RemovesAndAddsAutoclick', function() {
this.runWithLoadedTree(
'data:text/html;charset=utf-8,<p>Cats rock!</p>',
async function(desktop) {
// Turn on screen magnifier so that when we turn off autoclick, the
// extension doesn't get unloaded and crash the test.
await new Promise(resolve => {
chrome.accessibilityFeatures.screenMagnifier.set(
{value: true}, resolve);
});
// Toggle autoclick off and on, ensure it still works and no crashes.
await new Promise(resolve => {
chrome.accessibilityFeatures.autoclick.set({value: false}, resolve);
......
......@@ -22,6 +22,7 @@
"permissions": [
"accessibilityPrivate",
"accessibilityFeatures.read",
"accessibilityFeatures.modify",
"settingsPrivate"
],
"automation": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment