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
9707539c
...
9707539cc303bdd8641bff6976138f37d997dca1
authored
2013-05-04 15:51:11 -0600
by
hexid
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Move long test messages to new lines
1 parent
b6e7cd96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
tests/suites/casper/elementattribute.js
tests/suites/casper/elementattribute.js
View file @
9707539
...
...
@@ -10,9 +10,11 @@ casper.test.begin('getElementAttribute() tests', 4, function(test) {
'beautiful string'
,
'Casper.getElementAttribute() works with a XPath selector'
);
}).
then
(
function
()
{
test
.
assertEquals
(
this
.
getElementsAttribute
(
'.testo'
,
'data-stuff'
),
[
'beautiful string'
,
'not as beautiful string'
],
'Casper.getElementsAttribute() works with a CSS selector'
);
[
'beautiful string'
,
'not as beautiful string'
],
'Casper.getElementsAttribute() works with a CSS selector'
);
test
.
assertEquals
(
this
.
getElementsAttribute
(
x
(
'//div[@class]'
),
'data-stuff'
),
[
'beautiful string'
,
'not as beautiful string'
],
'Casper.getElementsAttribute() works with a XPath selector'
);
[
'beautiful string'
,
'not as beautiful string'
],
'Casper.getElementsAttribute() works with a XPath selector'
);
}).
run
(
function
()
{
test
.
done
();
});
...
...
Please
register
or
sign in
to post a comment