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

Version Path
webfontloader-1.6.28 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.27 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.26 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.25 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.24 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.23 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.22 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.21 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.20 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.19 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.18 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.16 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.15 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.14 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.13 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.12 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.11 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.10 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.9 tools/jasmine-phantomjs/jasmine-phantomjs.js
webfontloader-1.6.8 tools/jasmine-phantomjs/jasmine-phantomjs.js