diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-25 07:40:13 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-25 07:40:13 +0400 |
commit | c85ebdf790c5e83dd844d9e84b7255a9ad5572d7 (patch) | |
tree | 18343cc15efa1e348b3ebb7966178f30a83f5947 /tests/javascript/testrunner.js | |
parent | 20d4c26853ebcbbffd614f75b3e06f183eb878f4 (diff) |
refs #4225 output alert messages
Diffstat (limited to 'tests/javascript/testrunner.js')
-rw-r--r-- | tests/javascript/testrunner.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/javascript/testrunner.js b/tests/javascript/testrunner.js index 216fc7be44..61ca183f97 100644 --- a/tests/javascript/testrunner.js +++ b/tests/javascript/testrunner.js @@ -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()) { |