MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / assertFailsToSend

Function assertFailsToSend

javascript/webdriver/test/http/http_test.js:159–167  ·  view source on GitHub ↗

* @param {!webdriver.Command} command The command to send. * @param {!Function=} opt_onError The function to check the error with.

(command, opt_onError)

Source from the content-addressed store, hash-verified

157 * @param {!Function=} opt_onError The function to check the error with.
158 */
159function assertFailsToSend(command, opt_onError) {
160 return executor.execute(command)
161 .then(fail, function(e) {
162 control.$verifyAll();
163 if (opt_onError) {
164 opt_onError(e);
165 }
166 });
167}
168
169function testExecute_clientFailsToSendRequest() {
170 var error = new Error('boom');

Callers 1

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected