fixes #219 - ease chaining multiple run() calls
Showing
2 changed files
with
2 additions
and
0 deletions
... | @@ -10,6 +10,7 @@ XXXX-XX-XX, v1.0.0 | ... | @@ -10,6 +10,7 @@ XXXX-XX-XX, v1.0.0 |
10 | - fixed [#180](https://github.com/n1k0/casperjs/issues/180) - CasperJS tests are now run against a local HTTP test server. A new `casper selftest` command has been added as well. | 10 | - fixed [#180](https://github.com/n1k0/casperjs/issues/180) - CasperJS tests are now run against a local HTTP test server. A new `casper selftest` command has been added as well. |
11 | - fixed [#204](https://github.com/n1k0/casperjs/pull/204) - Fix for when the url is changed via javascript | 11 | - fixed [#204](https://github.com/n1k0/casperjs/pull/204) - Fix for when the url is changed via javascript |
12 | - fixed [#216](https://github.com/n1k0/casperjs/pull/216) - Change clientutils to be able to set a global scope | 12 | - fixed [#216](https://github.com/n1k0/casperjs/pull/216) - Change clientutils to be able to set a global scope |
13 | - fixed [#219](https://github.com/n1k0/casperjs/issues/219) - ease chaining of `run()` calls ([more explanations](https://groups.google.com/forum/#!topic/casperjs/jdQ-CrgnUd8)) | ||
13 | - fixed [#236](https://github.com/n1k0/casperjs/issues/236) - Casper.exit return `this` after calling `phantom.exit()` that may caused PhantomJS to hang | 14 | - fixed [#236](https://github.com/n1k0/casperjs/issues/236) - Casper.exit return `this` after calling `phantom.exit()` that may caused PhantomJS to hang |
14 | - fixed [#231](https://github.com/n1k0/casperjs/pull/231) - added `--pre` and `--post` options to the `casperjs test` command to load test files before and after the execution of testsuite | 15 | - fixed [#231](https://github.com/n1k0/casperjs/pull/231) - added `--pre` and `--post` options to the `casperjs test` command to load test files before and after the execution of testsuite |
15 | - fixed [#222](https://github.com/n1k0/casperjs/pull/222) & [#211](https://github.com/n1k0/casperjs/issues/211) - Change mouse event to include an X + Y value for click position | 16 | - fixed [#222](https://github.com/n1k0/casperjs/pull/222) & [#211](https://github.com/n1k0/casperjs/issues/211) - Change mouse event to include an X + Y value for click position | ... | ... |
... | @@ -327,6 +327,7 @@ Casper.prototype.checkStep = function checkStep(self, onComplete) { | ... | @@ -327,6 +327,7 @@ Casper.prototype.checkStep = function checkStep(self, onComplete) { |
327 | self.result.time = new Date().getTime() - self.startTime; | 327 | self.result.time = new Date().getTime() - self.startTime; |
328 | self.log(f("Done %s steps in %dms", self.steps.length, self.result.time), "info"); | 328 | self.log(f("Done %s steps in %dms", self.steps.length, self.result.time), "info"); |
329 | clearInterval(self.checker); | 329 | clearInterval(self.checker); |
330 | self.step -= 1; | ||
330 | self.emit('run.complete'); | 331 | self.emit('run.complete'); |
331 | if (utils.isFunction(onComplete)) { | 332 | if (utils.isFunction(onComplete)) { |
332 | onComplete.call(self, self); | 333 | onComplete.call(self, self); | ... | ... |
-
Please register or sign in to post a comment