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
55529f98
...
55529f9837f9c633c2f31e283b5ddd04a80abfcf
authored
2011-10-09 20:25:25 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added more tests
1 parent
86bf9f38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
tests/run.js
tests/run.js
View file @
55529f9
...
...
@@ -15,6 +15,8 @@ casper.start('tests/site/index.html', function(self) {
self
.
click
(
'a:first-child'
);
});
casper
.
assert
(
casper
.
steps
.
length
===
1
,
'start() can add a new navigation step'
);
casper
.
then
(
function
(
self
)
{
self
.
assertEvalEquals
(
function
()
{
return
document
.
title
;
...
...
@@ -22,6 +24,8 @@ casper.then(function(self) {
self
.
click
(
'a:first-child'
);
});
casper
.
assert
(
casper
.
steps
.
length
===
2
,
'then() adds a new navigation step'
);
casper
.
then
(
function
(
self
)
{
self
.
fill
(
'form[action="form.html"]'
,
{
'email'
:
'chuck@norris.com'
,
...
...
Please
register
or
sign in
to post a comment