puppeteer/third_party/phantomjs/test/standards/console/console_log.js
2017-05-11 00:06:41 -07:00

10 lines
311 B
JavaScript

async_test(function () {
var page = require('webpage').create();
page.onConsoleMessage = this.step_func_done(function (msg) {
assert_equals(msg, "answer 42");
});
page.evaluate(function () {
console.log('answer', 42);
});
}, "console.log should support multiple arguments");