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
6e24bd94
...
6e24bd943612a0de21306a1f33e7118c354e292d
authored
2012-11-10 17:27:56 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added tests for alerts
1 parent
01cc9a77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
docs
tests/suites/casper/alert.js
docs
@
75bb9a65
1
Subproject commit
a6a2706deca272222dc7a8d2e5d02024a17df402
1
Subproject commit
75bb9a657c05b2d139453af1ad0774024d3ba193
...
...
tests/suites/casper/alert.js
0 → 100644
View file @
6e24bd9
1
/*global casper*/
2
/*jshint strict:false*/
3
4
var
ok
=
false
;
5
6
casper
.
on
(
'remote.alert'
,
function
(
message
)
{
7
ok
=
message
===
'plop'
;
8
});
9
10
casper
.
start
(
'tests/site/alert.html'
).
run
(
function
()
{
11
this
.
test
.
assert
(
ok
,
'alert event has been intercepted'
);
12
this
.
test
.
done
();
13
});
Please
register
or
sign in
to post a comment