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
1b545611
...
1b5456116b441ccdc6534356413891c752d9b462
authored
2012-12-19 10:21:37 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed erroneous args in suites
1 parent
b25bf1f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
tests/suites/utils.js
tests/suites/utils.js
View file @
1b54561
...
...
@@ -4,7 +4,7 @@ var utils = require('utils'),
t
=
casper
.
test
,
x
=
require
(
'casper'
).
selectXPath
;
casper
.
test
.
begin
(
'utils.betterTypeOf() tests'
,
function
(
casper
)
{
casper
.
test
.
begin
(
'utils.betterTypeOf() tests'
,
function
()
{
var
testCases
=
[
{
subject
:
1
,
expected
:
'number'
},
{
subject
:
'1'
,
expected
:
'string'
},
...
...
@@ -24,7 +24,7 @@ casper.test.begin('utils.betterTypeOf() tests', function(casper) {
this
.
done
(
testCases
.
length
);
});
casper
.
test
.
begin
(
'utils.cleanUrl() tests'
,
function
(
casper
)
{
casper
.
test
.
begin
(
'utils.cleanUrl() tests'
,
function
()
{
var
testCases
=
{
'http://google.com/'
:
'http://google.com/'
,
'http://google.com'
:
'http://google.com/'
,
...
...
@@ -43,7 +43,7 @@ casper.test.begin('utils.cleanUrl() tests', function(casper) {
this
.
done
(
Object
.
keys
(
testCases
).
length
);
});
casper
.
test
.
begin
(
'utils.clone() tests'
,
function
(
casper
)
{
casper
.
test
.
begin
(
'utils.clone() tests'
,
function
()
{
var
a
=
{
a
:
1
,
b
:
2
,
c
:
[
1
,
2
]};
this
.
assertEquals
(
utils
.
clone
(
a
),
a
);
var
b
=
[
1
,
2
,
3
,
a
];
...
...
@@ -51,7 +51,7 @@ casper.test.begin('utils.clone() tests', function(casper) {
this
.
done
(
2
);
});
casper
.
test
.
begin
(
'equals() tests'
,
function
(
casper
)
{
casper
.
test
.
begin
(
'equals() tests'
,
function
()
{
this
.
assert
(
utils
.
equals
(
null
,
null
),
'equals() null equality'
);
this
.
assertNot
(
utils
.
equals
(
null
,
undefined
),
'equals() null vs. undefined inequality'
);
this
.
assert
(
utils
.
equals
(
"hi"
,
"hi"
),
'equals() string equality'
);
...
...
Please
register
or
sign in
to post a comment