test-agent
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,4 @@ | ||
# 0.5.3 | ||
- Moved Websocket lookups into the constructor of WebsocketClient | ||
# 0.5.2 | ||
@@ -2,0 +5,0 @@ - export-error can now handle strings correctly for |
@@ -6,3 +6,2 @@ //depends on TestAgent.Responder | ||
var isNode = typeof(window) === 'undefined', | ||
Native, | ||
Responder; | ||
@@ -15,6 +14,4 @@ | ||
Native = (Native || WebSocket || MozWebSocket); | ||
Responder = TestAgent.Responder; | ||
} else { | ||
Native = require('ws'); | ||
Responder = require('./responder'); | ||
@@ -53,2 +50,7 @@ } | ||
if (isNode) { | ||
this.Native = require('ws'); | ||
} else { | ||
this.Native = (Native || WebSocket || MozWebSocket); | ||
} | ||
@@ -70,3 +72,2 @@ this.on('open', this._setConnectionStatus.bind(this, true)); | ||
Client.prototype = Object.create(Responder.prototype); | ||
Client.prototype.Native = Native; | ||
@@ -73,0 +74,0 @@ /** |
{ | ||
"name": "test-agent", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
Sorry, the diff of this file is too big to display
298100
10509