Case insensitive tests
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment