Skip to content

Commit

Permalink
refs #4225 output alert messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 25, 2013
1 parent 20d4c26 commit c85ebdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/javascript/testrunner.js
Expand Up @@ -73,6 +73,10 @@ page.onConsoleMessage = function(message) {
console.log(message);
}

page.onAlert = function(msg) {
console.log('ALERT: ' + msg + "\n");
}

page.open(url, function(success) {
if (success === "success") {
if (!isPhantomAttached()) {
Expand Down

0 comments on commit c85ebdf

Please sign in to comment.