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
fde75394
...
fde75394b5b877180757bd78de7f8f4bd28d2d50
authored
2013-05-06 10:02:45 -0700
by
Darrell Hamilton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style fixes
1 parent
2a882964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
modules/casper.js
tests/suites/casper/navigation.js
modules/casper.js
View file @
fde7539
...
...
@@ -2268,7 +2268,7 @@ function createPage(casper) {
if
(
isMainFrame
&&
casper
.
requestUrl
!==
url
)
{
casper
.
navigationRequested
=
true
;
if
(
willNavigate
)
{
if
(
willNavigate
)
{
casper
.
requestUrl
=
url
;
}
}
...
...
tests/suites/casper/navigation.js
View file @
fde7539
...
...
@@ -9,7 +9,6 @@ var service = server.listen(8090, function(request, response) {
response
.
close
();
});
casper
.
test
.
begin
(
'Link Navigation updates response'
,
function
(
test
)
{
casper
.
start
(
'http://localhost:8090'
,
function
(
response
)
{
casper
.
click
(
'a'
);
...
...
@@ -21,7 +20,7 @@ casper.test.begin('Link Navigation updates response', function(test) {
test
.
assertEquals
(
response
.
url
,
casper
.
page
.
url
,
'response is consis
i
tent with the internal page'
'response is consistent with the internal page'
);
});
...
...
@@ -41,7 +40,7 @@ casper.test.begin('Form Submittal updates the response', function(test) {
test
.
assertEquals
(
response
.
url
,
casper
.
page
.
url
,
'response is consis
i
tent with the internal page'
'response is consistent with the internal page'
);
});
}).
run
(
function
()
{
...
...
@@ -49,4 +48,3 @@ casper.test.begin('Form Submittal updates the response', function(test) {
server
.
close
();
});
});
...
...
Please
register
or
sign in
to post a comment