puppeteer/third_party/phantomjs/test/basics/exit0.js
2017-05-11 00:06:41 -07:00

9 lines
212 B
JavaScript

//! no-harness
//! expect-exit: 0
//! expect-stdout: "we are alive"
var sys = require('system');
sys.stdout.write("we are alive\n");
phantom.exit();
sys.stdout.write("ERROR control passed beyond phantom.exit");