klayjs
Version:
Automatic graph layout based on Sugiyama's algorithm. Specialized for data flow diagrams and ports.
26 lines (15 loc) • 482 B
JavaScript
var page = require('webpage').create();
page.onConsoleMessage = function(msg, lineNum, sourceId) {
console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")');
};
page.open("test_webworker.html", function (status) {
//Page is loaded!
console.log("opened " + status);
var wnd = page.evaluate(function () {
return window;
});
setTimeout(function() {
console.dir(JSON.stringify(wnd.result));
phantom.exit();
}, 5000);
});