/*eslint-env node*/
// Borrowed from https://github.com/ember-cli/ember-cli/issues/3894#issuecomment-212946925
// Custom version of the Testem PhantomJS runner.
//   This exists to block requests to fonts.googleapis.com because this can cause
//     Phantom to incompletely load JS files causing bizarre syntax errors.
//   See https://github.com/ariya/phantomjs/issues/14173.
var system = require('system');
var page = require('webpage').create();
var url = system.args[1];
page.viewportSize = {
  width: 1024,
  height: 768
};
// The magic!
page.onResourceRequested = function(requestData, networkRequest) {
  if (requestData.url.match('fonts.googleapis.com')) {
    networkRequest.abort();
  }
};
page.open(url);

/*eslint-env node*/
// Borrowed from https://github.com/ember-cli/ember-cli/issues/3894#issuecomment-212946925
// Custom version of the Testem PhantomJS runner.
//   This exists to block requests to fonts.googleapis.com because this can cause
//     Phantom to incompletely load JS files causing bizarre syntax errors.
//   See https://github.com/ariya/phantomjs/issues/14173.
var system = require('system');
var page = require('webpage').create();
var url = system.args[1];
page.viewportSize = {
  width: 1024,
  height: 768
};
// The magic!
page.onResourceRequested = function(requestData, networkRequest) {
  console.log("a request!");
  if (requestData.url.match('fonts.googleapis.com')) {
    console.log("skipping " + requestData);
    networkRequest.abort();
  }
};
page.open(url);

Add some logging to the phantom skipper
Add some logging to the phantom skipper