puppeteer/third_party/phantomjs/test/standards/console/console_log.js

10 lines
311 B
JavaScript
Raw Normal View History

2017-05-11 07:06:41 +00:00
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");