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

Files app: Remove unused function runVisitDesktopMenu()

This test function isn't referred anywhere else.

Change-Id: I22793003c317c0d4fc44bf59d3eeaaf97cf6213f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2547647
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830062}
parent dd88b6a2
......@@ -448,26 +448,6 @@ test.util.sync.replyExecutedTask = (contentWindow, taskId, responseArgs) => {
found.callback(...responseArgs);
};
/**
* Runs the 'Move to profileId' menu.
*
* @param {Window} contentWindow Window to be tested.
* @param {string} profileId Destination profile's ID.
* @return {boolean} True if the menu is found and run.
*/
test.util.sync.runVisitDesktopMenu = (contentWindow, profileId) => {
const list = contentWindow.document.querySelectorAll('.visit-desktop');
for (let i = 0; i < list.length; ++i) {
if (list[i].label.indexOf(profileId) != -1) {
const activateEvent = contentWindow.document.createEvent('Event');
activateEvent.initEvent('activate', false, false);
list[i].dispatchEvent(activateEvent);
return true;
}
}
return false;
};
/**
* Calls the unload handler for the window.
* @param {Window} contentWindow Window to be tested.
......
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