Commit bdf25967 bdf2596734b96b7078021a20fb37dbc02967a665 by oncletom Committed by Nicolas Perriault

Case insensitive tests

1 parent ef9d0680
...@@ -27,8 +27,8 @@ casper.start('tests/site/index.html', function thenLocalPage () { ...@@ -27,8 +27,8 @@ casper.start('tests/site/index.html', function thenLocalPage () {
27 casper.thenOpen('http://localhost:8090/', function thenLocalhost () { 27 casper.thenOpen('http://localhost:8090/', function thenLocalhost () {
28 var headers = casper.currentResponse.headers; 28 var headers = casper.currentResponse.headers;
29 29
30 this.test.assertEquals(headers.get('Content-Language'), 'en', 'Checking existing header'); 30 this.test.assertEquals(headers.get('Content-Language'), 'en', 'Checking existing header (case sensitive)');
31 this.test.assertEquals(headers.get('content-language'), null, 'Checking header typecase'); 31 this.test.assertEquals(headers.get('content-language'), 'en', 'Checking existing header (case insensitive)');
32 this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header'); 32 this.test.assertEquals(headers.get('X-Is-Troll'), null, 'Checking unexisting header');
33 }); 33 });
34 34
......