* Tests if the given value is a valid error response object according to the * W3C WebDriver spec. * * @param {?} data The value to test. * @return {boolean} Whether the given value data object is a valid error * response. * @see https://w3c.github.io/webdriver/webdriver-spec.html#protocol
(data)
| 506 | * @see https://w3c.github.io/webdriver/webdriver-spec.html#protocol |
| 507 | */ |
| 508 | function isErrorResponse(data) { |
| 509 | return isObject(data) && typeof data.error === 'string' |
| 510 | } |
| 511 | |
| 512 | /** |
| 513 | * Throws an error coded from the W3C protocol. A generic error will be thrown |
no test coverage detected