Make check-example.js display console logs from page

This commit is contained in:
Éric Lemoine
2014-05-06 16:38:55 +02:00
parent c974612cc5
commit 18d292edd7

View File

@@ -28,3 +28,6 @@ page.open(examplePath, function(s) {
}
phantom.exit(exitCode);
});
page.onConsoleMessage = function(msg) {
console.log('console:', msg);
};