addon-test-support/@ember/test-helpers/dom/double-click.js
/**
  Double-clicks on the specified target.

  Sends a number of events intending to simulate a "real" user clicking on an
  element.

  For non-focusable elements the following events are triggered (in order):

  - `mousedown`
  - `mouseup`
  - `click`
  - `mousedown`
  - `mouseup`
  - `click`
  - `dblclick`

  For focusable (e.g. form control) elements the following events are triggered
  (in order):

  - `mousedown`
  - `focus`
  - `focusin`
  - `mouseup`
  - `click`
  - `mousedown`
  - `mouseup`
  - `click`
  - `dblclick`

  The exact listing of events that are triggered may change over time as needed
  to continue to emulate how actual browsers handle clicking a given element.

  Use the `options` hash to change the parameters of the MouseEvents. 

  @public
  @param {string|Element} target the element or selector to double-click on
  @param {Object} options the options to be merged into the mouse events
  @return {Promise<void>} resolves when settled
*/
Double-clicks on the specified target.
Sends a number of events intending to simulate a "real" user clicking on an
element.

For non-focusable elements the following events are triggered (in order).



For focusable  elements the following events are triggered
(in order).



The exact listing of events that are triggered may change over time as needed
to continue to emulate how actual browsers handle clicking a given element.

Use the `options` hash to change the parameters of the MouseEvents.
Double - clicks on the specified target . Sends a number of events intending to simulate a " real " user clicking on an element . For non - focusable elements the following events are triggered ( in order ) . For focusable elements the following events are triggered ( in order ) . The exact listing of events that are triggered may change over time as needed to continue to emulate how actual browsers handle clicking a given element . Use the ` options ` hash to change the parameters of the MouseEvents .
function doubleClick(target, options = {}) {
  return nextTickPromise().then(() => {
    if (!target) {
      throw new Error('Must pass an element or selector to `doubleClick`.');
    }
    let element = getElement(target);
    if (!element) {
      throw new Error(`Element not found when calling \`doubleClick('${target}')\`.`);
    }
    __doubleClick__(element, options);
    return settled();
  });
}
function doubleClick ( target , options = { } ) { return nextTickPromise ( ) . then ( ( ) => { if ( ! target ) { throw new Error ( 'Must pass an element or selector to `doubleClick`.' ) ; } let element = getElement ( target ) ; if ( ! element ) { throw new Error ( ` \` ${ target } \` ` ) ; } __doubleClick__ ( element , options ) ; return settled ( ) ; } ) ; }
Double-clicks on the specified target.
Double - clicks on the specified target .