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
858fa61c
...
858fa61cac9a8c08b56c856e6d2f95f71ade97be
authored
2013-11-11 09:00:00 -0800
by
Justin Collum
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
standardized tense of test failure/pass messages
1 parent
469fc564
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
modules/tester.js
modules/tester.js
View file @
858fa61
...
...
@@ -510,7 +510,7 @@ Tester.prototype.assertSelectorExist = function assertExists(selector, message)
"use strict"
;
return
this
.
assert
(
this
.
casper
.
exists
(
selector
),
message
,
{
type
:
"assertExists"
,
standard
:
f
(
"F
ou
nd an element matching: %s"
,
selector
),
standard
:
f
(
"F
i
nd an element matching: %s"
,
selector
),
values
:
{
selector
:
selector
}
...
...
@@ -530,7 +530,7 @@ Tester.prototype.assertNotExists = function assertDoesntExist(selector, message)
"use strict"
;
return
this
.
assert
(
!
this
.
casper
.
exists
(
selector
),
message
,
{
type
:
"assertDoesntExist"
,
standard
:
f
(
"
No element found
matching selector: %s"
,
selector
),
standard
:
f
(
"
Fail to find element
matching selector: %s"
,
selector
),
values
:
{
selector
:
selector
}
...
...
@@ -660,7 +660,7 @@ Tester.prototype.assertResourceExist = function assertResourceExists(test, messa
"use strict"
;
return
this
.
assert
(
this
.
casper
.
resourceExists
(
test
),
message
,
{
type
:
"assertResourceExists"
,
standard
:
"
Expected resource has been found
"
,
standard
:
"
Confirm page has resource
"
,
values
:
{
test
:
test
}
...
...
@@ -704,7 +704,7 @@ Tester.prototype.assertTextExist = function assertTextExists(text, message) {
}).
indexOf
(
text
)
!==
-
1
);
return
this
.
assert
(
textFound
,
message
,
{
type
:
"assertTextExists"
,
standard
:
"F
ound expecte
d text within the document body"
,
standard
:
"F
in
d text within the document body"
,
values
:
{
text
:
text
}
...
...
@@ -764,7 +764,7 @@ Tester.prototype.assertSelectorContains = function assertSelectorHasText(selecto
var
textFound
=
got
.
indexOf
(
text
)
!==
-
1
;
return
this
.
assert
(
textFound
,
message
,
{
type
:
"assertSelectorHasText"
,
standard
:
f
(
'F
ou
nd "%s" within the selector "%s"'
,
text
,
selector
),
standard
:
f
(
'F
i
nd "%s" within the selector "%s"'
,
text
,
selector
),
values
:
{
selector
:
selector
,
text
:
text
,
...
...
Please
register
or
sign in
to post a comment