function expectShortcutsOnTargets(shortcuts, targets, fireEvents) {
  for (let i = 0, ii = targets.length; i < ii; i++) {
    for (let j = 0, jj = shortcuts.length; j < jj; j++) {
      listener.shortcutFired(shortcuts[j]);
    }
    listener.$replay();
    fireEvents(dom.getElement(targets[i]));
    listener.$verify();
    listener.$reset();
  }
}
Checks that the shortcuts are fired on each target.
@param {Array<string>} shortcuts A list of shortcut identifiers.
@param {Array<string>} targets A list of element IDs.
@param {function(Element)} fireEvents Function that fires events.
@suppress {missingProperties} suppression added to enable type checking