[Files app] Add test for context menu in directory tree for Recent and Shortcut
Move helper function createShortcut to background.js to be able to re-use in directory_tree_context_menu.js and change its argument to be directory name instead of an object. This CL is a preparation to fix issue 925516 to make sure we don't break other uses of context menu. I'll add more tests in follow up CL for other types of roots in directory tree. Bug: 925516 Change-Id: Ifb475ac1fac7b8893c62a0270167ae8e357718ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504473 Commit-Queue: Sam McNally <sammc@chromium.org> Reviewed-by:Sam McNally <sammc@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#638032}
Showing
Please register or sign in to comment