lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.14.0 vs lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.15.0
- old
+ new
@@ -1,13 +1,13 @@
var Poltergeist, system,
extend = 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; },
hasProp = {}.hasOwnProperty;
Poltergeist = (function() {
- function Poltergeist(port, width, height) {
+ function Poltergeist(port, width, height, host) {
this.browser = new Poltergeist.Browser(width, height);
- this.connection = new Poltergeist.Connection(this, port);
+ this.connection = new Poltergeist.Connection(this, port, host);
phantom.onError = (function(_this) {
return function(message, stack) {
return _this.onError(message, stack);
};
})(this);
@@ -125,10 +125,27 @@
return MouseEventFailed;
})(Poltergeist.Error);
+Poltergeist.KeyError = (function(superClass) {
+ extend(KeyError, superClass);
+
+ function KeyError(message1) {
+ this.message = message1;
+ }
+
+ KeyError.prototype.name = "Poltergeist.KeyError";
+
+ KeyError.prototype.args = function() {
+ return [this.message];
+ };
+
+ return KeyError;
+
+})(Poltergeist.Error);
+
Poltergeist.JavascriptError = (function(superClass) {
extend(JavascriptError, superClass);
function JavascriptError(errors) {
this.errors = errors;
@@ -224,6 +241,6 @@
phantom.injectJs(phantom.libraryPath + "/browser.js");
system = require('system');
-new Poltergeist(system.args[1], system.args[2], system.args[3]);
+new Poltergeist(system.args[1], system.args[2], system.args[3], system.args[4]);