Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bdf25967
...
bdf2596734b96b7078021a20fb37dbc02967a665
authored
2012-07-19 11:12:33 +0200
by
oncletom
Committed by
Nicolas Perriault
2012-10-18 09:43:58 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Case insensitive tests
1 parent
ef9d0680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
tests/suites/casper/headers.js
tests/suites/casper/headers.js
View file @
bdf2596
...
...
@@ -27,8 +27,8 @@ casper.start('tests/site/index.html', function thenLocalPage () {
casper
.
thenOpen
(
'http://localhost:8090/'
,
function
thenLocalhost
()
{
var
headers
=
casper
.
currentResponse
.
headers
;
this
.
test
.
assertEquals
(
headers
.
get
(
'Content-Language'
),
'en'
,
'Checking existing header'
);
this
.
test
.
assertEquals
(
headers
.
get
(
'content-language'
),
null
,
'Checking header typecase
'
);
this
.
test
.
assertEquals
(
headers
.
get
(
'Content-Language'
),
'en'
,
'Checking existing header
(case sensitive)
'
);
this
.
test
.
assertEquals
(
headers
.
get
(
'content-language'
),
'en'
,
'Checking existing header (case insensitive)
'
);
this
.
test
.
assertEquals
(
headers
.
get
(
'X-Is-Troll'
),
null
,
'Checking unexisting header'
);
});
...
...
Please
register
or
sign in
to post a comment