Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Client / main.js
1 var Poltergeist, system, _ref, _ref1, _ref2;
2
3 //Inheritance tool
4 phantom.injectJs("" + phantom.libraryPath + "/Tools/inherit.js");
5
6 //Poltergeist main object
7 phantom.injectJs("" + phantom.libraryPath + "/poltergeist.js");
8
9 //Errors that are controller in the poltergeist code
10 phantom.injectJs("" + phantom.libraryPath + "/Errors/error.js");
11 phantom.injectJs("" + phantom.libraryPath + "/Errors/obsolete_node.js");
12 phantom.injectJs("" + phantom.libraryPath + "/Errors/invalid_selector.js");
13 phantom.injectJs("" + phantom.libraryPath + "/Errors/frame_not_found.js");
14 phantom.injectJs("" + phantom.libraryPath + "/Errors/mouse_event_failed.js");
15 phantom.injectJs("" + phantom.libraryPath + "/Errors/javascript_error.js");
16 phantom.injectJs("" + phantom.libraryPath + "/Errors/browser_error.js");
17 phantom.injectJs("" + phantom.libraryPath + "/Errors/status_fail_error.js");
18 phantom.injectJs("" + phantom.libraryPath + "/Errors/no_such_window_error.js");
19
20 //web server to control the commands
21 phantom.injectJs("" + phantom.libraryPath + "/Server/server.js");
22
23 phantom.injectJs("" + phantom.libraryPath + "/web_page.js");
24 phantom.injectJs("" + phantom.libraryPath + "/node.js");
25 phantom.injectJs("" + phantom.libraryPath + "/browser.js");
26
27 system = require('system');
28
29 new window.Poltergeist(system.args[1], system.args[2], system.args[3], system.args[4] === 'false' ? false : true);