lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.5.1 vs lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.6.0
- old
+ new
@@ -1,6 +1,6 @@
-var Poltergeist, _ref,
+var Poltergeist, system, _ref, _ref1, _ref2,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Poltergeist = (function() {
function Poltergeist(port, width, height) {
@@ -173,14 +173,52 @@
return BrowserError;
})(Poltergeist.Error);
+Poltergeist.StatusFailError = (function(_super) {
+ __extends(StatusFailError, _super);
+
+ function StatusFailError() {
+ _ref1 = StatusFailError.__super__.constructor.apply(this, arguments);
+ return _ref1;
+ }
+
+ StatusFailError.prototype.name = "Poltergeist.StatusFailError";
+
+ StatusFailError.prototype.args = function() {
+ return [];
+ };
+
+ return StatusFailError;
+
+})(Poltergeist.Error);
+
+Poltergeist.NoSuchWindowError = (function(_super) {
+ __extends(NoSuchWindowError, _super);
+
+ function NoSuchWindowError() {
+ _ref2 = NoSuchWindowError.__super__.constructor.apply(this, arguments);
+ return _ref2;
+ }
+
+ NoSuchWindowError.prototype.name = "Poltergeist.NoSuchWindowError";
+
+ NoSuchWindowError.prototype.args = function() {
+ return [];
+ };
+
+ return NoSuchWindowError;
+
+})(Poltergeist.Error);
+
phantom.injectJs("" + phantom.libraryPath + "/web_page.js");
phantom.injectJs("" + phantom.libraryPath + "/node.js");
phantom.injectJs("" + phantom.libraryPath + "/connection.js");
phantom.injectJs("" + phantom.libraryPath + "/browser.js");
-new Poltergeist(phantom.args[0], phantom.args[1], phantom.args[2]);
+system = require('system');
+
+new Poltergeist(system.args[1], system.args[2], system.args[3]);