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
60c27d7c
...
60c27d7ca948aef220567461343d98f7e2dd6a77
authored
2012-12-28 12:40:40 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
migrated pagestack tests to new testing format
1 parent
94e51f43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
tests/suites/popup.js
tests/suites/popup.js
deleted
100644 → 0
View file @
94e51f4
/*jshint strict:false*/
/*global CasperError casper console phantom require*/
var
pagestack
=
require
(
'pagestack'
);
var
utils
=
require
(
'utils'
);
var
webpage
=
require
(
'webpage'
);
var
t
=
casper
.
test
;
var
stack
=
pagestack
.
create
();
var
page1
=
webpage
.
create
();
page1
.
url
=
'page1.html'
;
stack
.
push
(
page1
);
t
.
assertEquals
(
stack
.
length
,
1
);
t
.
assert
(
utils
.
isWebPage
(
stack
[
0
]));
t
.
assertEquals
(
stack
[
0
],
page1
);
t
.
assertEquals
(
stack
.
list
().
length
,
1
);
t
.
assertEquals
(
stack
.
list
()[
0
],
page1
.
url
);
var
page2
=
webpage
.
create
();
page2
.
url
=
'page2.html'
;
stack
.
push
(
page2
);
t
.
assertEquals
(
stack
.
length
,
2
);
t
.
assert
(
utils
.
isWebPage
(
stack
[
1
]));
t
.
assertEquals
(
stack
[
1
],
page2
);
t
.
assertEquals
(
stack
.
list
().
length
,
2
);
t
.
assertEquals
(
stack
.
list
()[
1
],
page2
.
url
);
t
.
assertEquals
(
stack
.
clean
(
page1
),
1
);
t
.
assertEquals
(
stack
[
0
],
page2
);
t
.
assertEquals
(
stack
.
list
().
length
,
1
);
t
.
assertEquals
(
stack
.
list
()[
0
],
page2
.
url
);
casper
.
test
.
done
();
Please
register
or
sign in
to post a comment