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
a8c70c74
...
a8c70c74df4925b502265e3704fb03427cec02df
authored
2012-12-10 20:49:12 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added more tests for frames support
1 parent
1cd9d85f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
tests/suites/casper/frames.js
tests/suites/casper/frames.js
View file @
a8c70c7
...
...
@@ -14,13 +14,23 @@ casper.waitForFrame('frame2', function() {
casper
.
withFrame
(
'frame1'
,
function
()
{
this
.
test
.
assertTitle
(
'CasperJS frame 1'
);
this
.
test
.
assertExists
(
"#f1"
);
this
.
test
.
assertDoesntExist
(
"#f2"
);
this
.
test
.
assertEval
(
function
()
{
return
'__utils__'
in
window
&&
'getBinary'
in
__utils__
;
},
'__utils__ object is available in child frame'
);
});
casper
.
withFrame
(
'frame2'
,
function
()
{
this
.
test
.
assertTitle
(
'CasperJS frame 2'
);
this
.
test
.
assertExists
(
"#f2"
);
this
.
test
.
assertDoesntExist
(
"#f1"
);
this
.
test
.
assertEval
(
function
()
{
return
'__utils__'
in
window
&&
'getBinary'
in
__utils__
;
},
'__utils__ object is available in other child frame'
);
});
casper
.
run
(
function
()
{
this
.
test
.
assertTitle
(
'CasperJS test frames'
);
this
.
test
.
done
(
7
);
this
.
test
.
done
(
13
);
});
...
...
Please
register
or
sign in
to post a comment