Commit 4949dad8 4949dad8e8817ce1d7ec4021fc8658d7d63ee8fd by oncletom Committed by Nicolas Perriault

First tests

1 parent ae202721
1 casper.test.comment('Casper.getCurrentHeader()');
2
3 function dumpHeaders() {
4 casper.test.comment('Dumping current response headers');
5
6 casper.getCurrentHeaders().forEach(function(header){
7 casper.test.comment('- '+ header.name + ': '+ header.value);
8 });
9 }
10
11 casper.start('tests/site/index.html', function then(){
12 this.test.assertEquals(casper.getCurrentHeader('Status'), null, 'No Status header on local page');
13 this.test.assert(casper.getCurrentHeaders().length === 0, 'No headers sent back');
14 });
15
16
17 casper.run(function(){
18 this.test.done();
19 });