()
| 334 | } |
| 335 | |
| 336 | function testCanDefineNewCommands() { |
| 337 | executor.defineCommand('greet', 'GET', '/person/:name'); |
| 338 | |
| 339 | var command = new webdriver.Command('greet'). |
| 340 | setParameter('name', 'Bob'); |
| 341 | |
| 342 | expectRequest('GET', '/person/Bob', {}, |
| 343 | {'Accept': 'application/json; charset=utf-8'}). |
| 344 | $does(respondsWith(null, response(200, {}, ''))); |
| 345 | control.$replayAll(); |
| 346 | |
| 347 | return assertSendsSuccessfully(command); |
| 348 | } |
| 349 | |
| 350 | function testCanRedefineStandardCommands() { |
| 351 | executor.defineCommand(webdriver.CommandName.GO_BACK, |
nothing calls this directly
no test coverage detected