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
fb1a7216
...
fb1a72165ae5f9b98ac45a8934206ba1a9319611
authored
2013-05-06 12:49:35 -0600
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update page content at the start of the second getElementsInfo() test
1 parent
b7f4bdeb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
tests/suites/clientutils.js
tests/suites/clientutils.js
View file @
fb1a721
...
...
@@ -183,6 +183,7 @@ casper.test.begin('ClientUtils.getElementsInfo() first element tests', 10, funct
});
casper
.
test
.
begin
(
'ClientUtils.getElementsInfo() second element tests'
,
10
,
function
(
test
)
{
casper
.
page
.
content
=
'<a href="plop" class="plip plup"><i>paf</i></a><a href="plap" class="plip plup"><i>puf</i></a>'
;
var
info
=
casper
.
getElementsInfo
(
'a.plip'
);
test
.
assertEquals
(
info
[
1
].
nodeName
,
'a'
,
'ClientUtils.getElementsInfo() retrieves second element name'
);
test
.
assertEquals
(
info
[
1
].
attributes
,
{
...
...
Please
register
or
sign in
to post a comment