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
64b73b49
...
64b73b49810940c3538076572722b0cbe004d324
authored
2013-03-06 20:21:08 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
wording - fixes #399
1 parent
ea90cda7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
tests/suites/casper/formfill.js
tests/suites/casper/xpath.js
tests/suites/casper/formfill.js
View file @
64b73b4
...
...
@@ -59,10 +59,10 @@ casper.test.begin('fill() tests', 15, function(test) {
});
});
casper
.
test
.
begin
(
'
u
nexistent fields'
,
1
,
function
(
test
)
{
casper
.
test
.
begin
(
'
no
nexistent fields'
,
1
,
function
(
test
)
{
casper
.
start
(
'tests/site/form.html'
,
function
()
{
test
.
assertRaises
(
this
.
fill
,
[
'form[action="result.html"]'
,
{
u
nexistent
:
42
no
nexistent
:
42
},
true
],
'Casper.fill() raises an exception when unable to fill a form'
);
}).
run
(
function
()
{
test
.
done
();
...
...
tests/suites/casper/xpath.js
View file @
64b73b4
...
...
@@ -11,7 +11,7 @@ casper.test.begin('XPath tests', 6, function(test) {
test
.
assertDoesntExist
({
type
:
'xpath'
,
path
:
'/html/body/ol/li[2]'
},
'XPath selector does not retrieve a
n u
nexistent element'
);
},
'XPath selector does not retrieve a
no
nexistent element'
);
test
.
assertExists
(
x
(
'/html/body/ul/li[2]'
),
'selectXPath() shortcut can find an element as well'
);
test
.
assertEvalEquals
(
function
()
{
return
__utils__
.
findAll
({
type
:
'xpath'
,
path
:
'/html/body/ul/li'
}).
length
;
...
...
Please
register
or
sign in
to post a comment