* @param {!webdriver.Command} command The command to send. * @param {!Function=} opt_onError The function to check the error with.
(command, opt_onError)
| 157 | * @param {!Function=} opt_onError The function to check the error with. |
| 158 | */ |
| 159 | function 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 | |
| 169 | function testExecute_clientFailsToSendRequest() { |
| 170 | var error = new Error('boom'); |
no test coverage detected