Permalink
Browse files

Updating ghostdriver

  • Loading branch information...
1 parent 87d01ab commit 836938192751299a8601fd93ab407c06c08474d0 Payal Shah committed Sep 10, 2012
View
@@ -0,0 +1,18 @@
+.DS_Store
+*.xcodeproj
+Makefile*
+*~
+.idea
+*.iml
+target/
+chromedriver.log
+build
+*.log
+.gradle
+*.ipr
+*.iws
+*.class
+*.orig
+
+# vim temp files
+*.swp
@@ -73,14 +73,14 @@ ghostdriver.RequestHandler = function() {
},
_writeAndCloseDecorator = function(body) {
- this.setHeader("Content-Length", body.length);
+ this.setHeader("Content-Length", unescape(encodeURIComponent(body)).length);
this.write(body);
this.close();
},
_writeJSONAndCloseDecorator = function(obj) {
var objStr = JSON.stringify(obj);
- this.setHeader("Content-Length", objStr.length);
+ this.setHeader("Content-Length", unescape(encodeURIComponent(objStr)).length);
this.write(objStr);
this.close();
},
@@ -51,7 +51,7 @@ ghostdriver.RouterReqHand = function() {
// Invoke parent implementation
_protoParent.handle.call(this, req, res);
- console.log("Request => " + JSON.stringify(req, null, ' '));
+ // console.log("Request => " + JSON.stringify(req, null, ' '));
try {
if (req.urlParsed.file === _const.STATUS) { // GET '/status'
@@ -10,7 +10,7 @@ repositories {
mavenCentral()
}
-ext.seleniumVersion = "2.24.1"
+ext.seleniumVersion = "2.25.0"
dependencies {
["selenium-java", "selenium-remote-driver", "selenium-server"].each {
@@ -25,14 +25,16 @@ tasks.withType(JavaExec) {
}
test {
+ dependsOn "clean"
+
//makes the standard streams (err and out) visible at console when running tests
- testLogging.showStandardStreams = true
-
- //listening to test execution events
- beforeTest { descriptor ->
- logger.lifecycle("Running test: " + descriptor)
- }
- onOutput { descriptor, event ->
- logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
- }
+ testLogging.showStandardStreams = true
+
+ //listening to test execution events
+ beforeTest { descriptor ->
+ logger.lifecycle("Running test: " + descriptor)
+ }
+ onOutput { descriptor, event ->
+ logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
+ }
}

0 comments on commit 8369381

Please sign in to comment.