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
21919047
...
21919047d3b24bb57ee54a9de752437a2328bea9
authored
2012-09-23 16:51:43 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated new tester messages not to break XML - refs #190
1 parent
ad123fbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
modules/tester.js
modules/tester.js
View file @
2191904
...
...
@@ -252,7 +252,7 @@ var Tester = function Tester(casper, options) {
},
{
input_name
:
input_name
});
return
this
.
assert
(
this
.
testEquals
(
actual_value
,
expected_value
),
message
,
{
type
:
'assertField'
,
standard
:
f
(
'
%s input field has the value %s'
,
this
.
colorize
(
input_name
,
'COMMENT'
),
this
.
colorize
(
expected_value
,
'COMMENT'
)
),
standard
:
f
(
'
"%s" input field has the value "%s"'
,
input_name
,
expected_value
),
values
:
{
input_name
:
input_name
,
actual_value
:
actual_value
,
...
...
@@ -427,7 +427,7 @@ var Tester = function Tester(casper, options) {
var
textFound
=
casper
.
fetchText
(
selector
).
indexOf
(
text
)
!==
-
1
;
return
this
.
assert
(
textFound
,
message
,
{
type
:
"assertTextInSelector"
,
standard
:
f
(
'Found
%s within the selector %s'
,
this
.
colorize
(
text
,
'COMMENT'
),
this
.
colorize
(
selector
,
'COMMENT'
)
),
standard
:
f
(
'Found
"%s" within the selector "%s"'
,
text
,
selector
),
values
:
{
selector
:
selector
,
text
:
text
...
...
@@ -447,7 +447,7 @@ var Tester = function Tester(casper, options) {
var
textFound
=
casper
.
fetchText
(
selector
).
indexOf
(
text
)
===
-
1
;
return
this
.
assert
(
textFound
,
message
,
{
type
:
"assertNoTextInSelector"
,
standard
:
f
(
'Did not find
%s within the selector %s'
,
this
.
colorize
(
text
,
'COMMENT'
),
this
.
colorize
(
selector
,
'COMMENT'
)
),
standard
:
f
(
'Did not find
"%s" within the selector "%s"'
,
text
,
selector
),
values
:
{
selector
:
selector
,
text
:
text
...
...
Please
register
or
sign in
to post a comment