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
652f26c3
...
652f26c3f87569aa694f183e36876854acf4ca15
authored
2011-10-16 16:07:15 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added tests for Casper#exists
1 parent
4f157b94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
tests/run.js
tests/run.js
View file @
652f26c
...
...
@@ -33,6 +33,7 @@ casper.options.verbose = true;
// Casper#start()
casper
.
test
.
comment
(
'navigating'
);
casper
.
start
(
'tests/site/index.html'
,
function
(
self
)
{
self
.
test
.
assert
(
self
.
exists
(
'a'
)
&&
!
self
.
exists
(
'chucknorriz'
),
'exists() can check if an element exists'
);
self
.
test
.
assertTitle
(
'CasperJS test index'
,
'start() casper can start itself an open an url'
);
self
.
test
.
assertEval
(
function
()
{
return
typeof
(
__utils__
)
===
"object"
;
...
...
Please
register
or
sign in
to post a comment