Skip to content

Commit

Permalink
Resilience to non windows environment (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Jan 19, 2018
1 parent ed10fd6 commit 3e6bab7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/host/rhino.js
Expand Up @@ -3,16 +3,24 @@
/*eslint-env rhino*/
/*global environment*/

var gpfPath = environment["user.dir"];
var gpfPath = environment["user.dir"],
pathSeparator = environment["file.separator"];

load(gpfPath + "\\test\\host\\loader.js"); /*global loadGpfAndTests*/
load([
gpfPath,
"test",
"host",
"loader.js"
].join(pathSeparator));

/*global loadGpfAndTests*/

loadGpfAndTests({
parameters: (function () {
return this["arguments"]; //eslint-disable-line dot-notation, no-invalid-this
}()),
gpfPath: gpfPath,
pathSeparator: environment["file.separator"],
pathSeparator: pathSeparator,
log: function (text) {
print(text);
},
Expand Down

0 comments on commit 3e6bab7

Please sign in to comment.