mirror of
https://github.com/danbulant/pngjs
synced 2026-05-26 13:21:59 +00:00
24 lines
583 B
JavaScript
24 lines
583 B
JavaScript
require("./http-server");
|
|
|
|
var path = require('path');
|
|
var childProcess = require('child_process');
|
|
var phantomjs = require('phantomjs-prebuilt');
|
|
var binPath = phantomjs.path;
|
|
|
|
var childArgs = [
|
|
path.join(__dirname, 'phantom-compare.js')
|
|
];
|
|
|
|
try {
|
|
console.log("Comparing in PhantomJS");
|
|
|
|
childProcess.execFile(binPath, childArgs, function (err, stdout, stderr) {
|
|
|
|
// handle results
|
|
console.log("Comparison Test Results:");
|
|
console.log(stdout);
|
|
process.exit(err ? 1 : 0);
|
|
});
|
|
} catch (e) {
|
|
console.log("Error starting phantomjs");
|
|
}
|