Make check-example.js display console logs from page

This commit is contained in:
Éric Lemoine committed 2014-05-06 16:38:55 +02:00
1 parent c974612cc5
commit 18d292edd7
1 file changed
+3
+3
View File
@@ -28,3 +28,6 @@ page.open(examplePath, function(s) {
}
phantom.exit(exitCode);
});
page.onConsoleMessage = function(msg) {
console.log('console:', msg);
};