removed Casper#thenIf method, broken and not really useful
Showing
1 changed file
with
0 additions
and
18 deletions
... | @@ -373,24 +373,6 @@ | ... | @@ -373,24 +373,6 @@ |
373 | }, | 373 | }, |
374 | 374 | ||
375 | /** | 375 | /** |
376 | * Adds a new navigation step depending on a condition to be evaluated | ||
377 | * within current page DOM. Dies on precondition failure with an | ||
378 | * optional message to be added to the results.errors Array. | ||
379 | * | ||
380 | * @param function condition An expression to be evaluated as a Boolean | ||
381 | * @param function then The next step to add if precondition succeeded | ||
382 | * @param string | ||
383 | */ | ||
384 | thenIf: function(condition, then, message) { | ||
385 | return this.then(function(self) { | ||
386 | if (self.evaluate(condition) === true) { | ||
387 | return self.then(then); | ||
388 | } | ||
389 | return self.die(message); | ||
390 | }); | ||
391 | }, | ||
392 | |||
393 | /** | ||
394 | * Adds a new navigation step for opening the provided location. | 376 | * Adds a new navigation step for opening the provided location. |
395 | * | 377 | * |
396 | * @param string location The URL to load | 378 | * @param string location The URL to load | ... | ... |
-
Please register or sign in to post a comment