Sha256: 72346eab9d2240fcc78f3c4ad21829265e315565486f8baab82c35a46b51a88c
Contents?: true
Size: 548 Bytes
Versions: 37
Compression:
Stored size: 548 Bytes
Contents
var webpage = require('webpage'), system = require('system'); if (system.args.length !== 1) { var page = webpage.create(); page.onConsoleMessage = function (msg) { console.log(msg); if (/SUCCESS|FAILURE/.test(msg)) { if (/SUCCESS/.test(msg)) { phantom.exit(0); } else { phantom.exit(1); } } }; page.open(system.args[1], function (status) { if (status !== 'success') { phantom.exit(1); } }); } else { console.log('Usage: jasmine-phantomjs [FILE]'); phantom.exit(1); }
Version data entries
37 entries across 37 versions & 1 rubygems