Commit a30a7209 a30a7209826d83f87e0921cc8ebe50936b0eaf0c by Nicolas Perriault

cleaned PR #188

1 parent 1d22ab37
......@@ -190,7 +190,6 @@ Casper.prototype.back = function back() {
this.evaluate(function _evaluate() {
history.back();
});
this.currentResponse = this.resources.pop();
});
};
......
......@@ -8,7 +8,7 @@ var service = server.listen(8090, function(request, response) {
'Content-Type': 'text/html',
'Date': new Date().toUTCString()
};
response.write("\o/");
response.write("ok");
response.close();
});
......@@ -33,12 +33,6 @@ casper.thenOpen('http://localhost:8090/', function thenLocalhost(response) {
this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header');
});
casper.back();
casper.then(function(response) {
this.test.assertEquals(response, undefined, 'Response should match the one of the previous step');
});
casper.run(function() {
server.close();
this.test.done();
......
......@@ -6,8 +6,6 @@ var nsteps = casper.steps.length;
casper.then(function(response) {
this.test.assertTitle('CasperJS test index', 'Casper.then() added a new step');
require('utils').dump(response);
this.test.assertEquals(response, undefined, 'Casper.then() response is undefined in local mode');
});
casper.test.assertEquals(casper.steps.length, nsteps + 1, 'Casper.then() can add a new step');
......