Commit 23677672 authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Add context menu tests for FSP

Bug: 925516
Change-Id: I7083ffc99110f20828764c9f762a44650f278208
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504664
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638054}
parent c0621e08
...@@ -582,6 +582,7 @@ WRAPPED_INSTANTIATE_TEST_SUITE_P( ...@@ -582,6 +582,7 @@ WRAPPED_INSTANTIATE_TEST_SUITE_P(
TestCase("dirContextMenuCrostini"), TestCase("dirContextMenuCrostini"),
TestCase("dirContextMenuPlayFiles"), TestCase("dirContextMenuPlayFiles"),
TestCase("dirContextMenuUsbs"), TestCase("dirContextMenuUsbs"),
TestCase("dirContextMenuFsp"),
TestCase("dirContextMenuShortcut"))); TestCase("dirContextMenuShortcut")));
WRAPPED_INSTANTIATE_TEST_SUITE_P( WRAPPED_INSTANTIATE_TEST_SUITE_P(
......
...@@ -736,10 +736,32 @@ testcase.dirContextMenuUsbs = async () => { ...@@ -736,10 +736,32 @@ testcase.dirContextMenuUsbs = async () => {
// Check the context menu for multiple partitions USB (root). // Check the context menu for multiple partitions USB (root).
await checkContextMenu( await checkContextMenu(
appId, partitionsRootQuery, partitionsRootMenus, true /* rootMenu */); appId, partitionsRootQuery, partitionsRootMenus, true /* rootMenu */);
//
// Check the context menu for multiple partitions USB (actual partition). // Check the context menu for multiple partitions USB (actual partition).
await checkContextMenu( await checkContextMenu(
appId, partition1Query, partition1Menus, false /* rootMenu */); appId, partition1Query, partition1Menus, false /* rootMenu */);
}; };
/**
* Tests context menu for FSP root.
* TODO(lucmult): Check menus for a FSP.
*/
testcase.dirContextMenuFsp = async () => {
const fspMenus = [
['#unmount', true],
];
const fspQuery = '#directory-tree [entry-label="Test (1)"]';
// Install a FSP.
const manifest = 'manifest_source_file.json';
await sendTestMessage({name: 'launchProviderExtension', manifest: manifest});
// Open Files app on local Downloads.
const appId =
await setupAndWaitUntilReady(RootPath.DOWNLOADS, [ENTRIES.beautiful], []);
// Check the context menu for FSP.
await checkContextMenu(appId, fspQuery, fspMenus, true /* rootMenu */);
};
})(); })();
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