Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
feat(eyes-selenium): add abortAsync method
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Sep 3, 2019
1 parent 7c27534 commit 5b78899
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eyes-selenium/lib/Eyes.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,14 @@ class Eyes extends EyesBase {
await this.close(false);
}

// noinspection JSMethodCanBeStatic,JSUnusedGlobalSymbols
/**
* @return {Promise}
*/
async abortAsync() {
await this.abort();
}

/**
* @return {Promise<RectangleSize>} - The viewport size of the AUT.
*/
Expand Down
7 changes: 7 additions & 0 deletions packages/eyes-selenium/lib/EyesVisualGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ class EyesVisualGrid extends Eyes {
return null;
}

/**
* @return {Promise}
*/
async abortAsync() {
this._closePromise = this.abort();
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 5b78899

Please sign in to comment.