function expandRoot(windowId, selector) {
  return remoteCall.waitForElement(
      windowId, selector + EXPAND_ICON).then(function() {
    return remoteCall.callRemoteTestUtil(
        'fakeMouseClick', windowId, [selector + EXPAND_ICON]);
  }).then(function(result) {
    chrome.test.assertTrue(result);
    return remoteCall.waitForElement(windowId,
        selector + EXPANDED_SUBTREE);
  });
}
/**
 * This is used to expand the tree item for Downloads or Drive.
 * @param {string} windowId The Files app window.
 * @param {string} selector The Downloads or Drive tree item selector.
 * @return {Promise} Promise fulfilled on success.
 */
This is used to expand the tree item for Downloads or Drive.
@param {string} windowId The Files app window.
@param {string} selector The Downloads or Drive tree item selector.
@return {Promise} Promise fulfilled on success.
This is used to expand the tree item for Downloads or Drive . @param { string } windowId The Files app window . @param { string } selector The Downloads or Drive tree item selector . @return { Promise } Promise fulfilled on success .
function expandRoot(windowId, selector) {
  return remoteCall.waitForElement(
      windowId, selector + EXPAND_ICON).then(function() {
    return remoteCall.callRemoteTestUtil(
        'fakeMouseClick', windowId, [selector + EXPAND_ICON]);
  }).then(function(result) {
    chrome.test.assertTrue(result);
    return remoteCall.waitForElement(windowId,
        selector + EXPANDED_SUBTREE);
  });
}
function expandRoot ( windowId , selector ) { return remoteCall . waitForElement ( windowId , selector + EXPAND_ICON ) . then ( function ( ) { return remoteCall . callRemoteTestUtil ( 'fakeMouseClick' , windowId , [ selector + EXPAND_ICON ] ) ; } ) . then ( function ( result ) { chrome . test . assertTrue ( result ) ; return remoteCall . waitForElement ( windowId , selector + EXPANDED_SUBTREE ) ; } ) ; }
This is used to expand the tree item for Downloads or Drive.
This is used to expand the tree item for Downloads or Drive .