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
ad4f403f
...
ad4f403f1f1639470b303aa28ec0b528371cc24c
authored
2011-10-10 13:26:49 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added more tests
1 parent
d3741b49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
tests/run.js
tests/run.js
View file @
ad4f403
...
...
@@ -29,6 +29,9 @@ casper.start('tests/site/index.html', function(self) {
self
.
assertEvalEquals
(
function
()
{
return
document
.
title
;
},
'CasperJS test index'
,
'start() casper can start itself an open an url'
);
self
.
assertEval
(
function
()
{
return
typeof
(
__utils__
)
===
"object"
;
},
'start() injects ClientUtils instance within remote DOM'
);
var
image
=
self
.
base64encode
(
'file://'
+
phantom
.
libraryPath
+
'/site/images/phantom.png'
);
self
.
assertEquals
(
image
.
length
,
6160
,
'base64encode() can retrieve base64 contents'
);
self
.
click
(
'a[href="test.html"]'
);
...
...
Please
register
or
sign in
to post a comment