cleaned PR #188
Showing
3 changed files
with
1 additions
and
10 deletions
... | @@ -190,7 +190,6 @@ Casper.prototype.back = function back() { | ... | @@ -190,7 +190,6 @@ Casper.prototype.back = function back() { |
190 | this.evaluate(function _evaluate() { | 190 | this.evaluate(function _evaluate() { |
191 | history.back(); | 191 | history.back(); |
192 | }); | 192 | }); |
193 | this.currentResponse = this.resources.pop(); | ||
194 | }); | 193 | }); |
195 | }; | 194 | }; |
196 | 195 | ... | ... |
... | @@ -8,7 +8,7 @@ var service = server.listen(8090, function(request, response) { | ... | @@ -8,7 +8,7 @@ var service = server.listen(8090, function(request, response) { |
8 | 'Content-Type': 'text/html', | 8 | 'Content-Type': 'text/html', |
9 | 'Date': new Date().toUTCString() | 9 | 'Date': new Date().toUTCString() |
10 | }; | 10 | }; |
11 | response.write("\o/"); | 11 | response.write("ok"); |
12 | response.close(); | 12 | response.close(); |
13 | }); | 13 | }); |
14 | 14 | ||
... | @@ -33,12 +33,6 @@ casper.thenOpen('http://localhost:8090/', function thenLocalhost(response) { | ... | @@ -33,12 +33,6 @@ casper.thenOpen('http://localhost:8090/', function thenLocalhost(response) { |
33 | this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header'); | 33 | this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header'); |
34 | }); | 34 | }); |
35 | 35 | ||
36 | casper.back(); | ||
37 | |||
38 | casper.then(function(response) { | ||
39 | this.test.assertEquals(response, undefined, 'Response should match the one of the previous step'); | ||
40 | }); | ||
41 | |||
42 | casper.run(function() { | 36 | casper.run(function() { |
43 | server.close(); | 37 | server.close(); |
44 | this.test.done(); | 38 | this.test.done(); | ... | ... |
... | @@ -6,8 +6,6 @@ var nsteps = casper.steps.length; | ... | @@ -6,8 +6,6 @@ var nsteps = casper.steps.length; |
6 | 6 | ||
7 | casper.then(function(response) { | 7 | casper.then(function(response) { |
8 | this.test.assertTitle('CasperJS test index', 'Casper.then() added a new step'); | 8 | this.test.assertTitle('CasperJS test index', 'Casper.then() added a new step'); |
9 | require('utils').dump(response); | ||
10 | this.test.assertEquals(response, undefined, 'Casper.then() response is undefined in local mode'); | ||
11 | }); | 9 | }); |
12 | 10 | ||
13 | casper.test.assertEquals(casper.steps.length, nsteps + 1, 'Casper.then() can add a new step'); | 11 | casper.test.assertEquals(casper.steps.length, nsteps + 1, 'Casper.then() can add a new step'); | ... | ... |
-
Please register or sign in to post a comment