Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Updating ghostdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
Payal Shah committed Sep 10, 2012
1 parent 87d01ab commit 8369381
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
18 changes: 18 additions & 0 deletions ghostdriver/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.DS_Store
*.xcodeproj
Makefile*
*~
.idea
*.iml
target/
chromedriver.log
build
*.log
.gradle
*.ipr
*.iws
*.class
*.orig

# vim temp files
*.swp
4 changes: 2 additions & 2 deletions ghostdriver/src/request_handlers/request_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down
2 changes: 1 addition & 1 deletion ghostdriver/src/request_handlers/router_request_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
22 changes: 12 additions & 10 deletions ghostdriver/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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.