Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c55dc1bc
...
c55dc1bcff5bbd39a8ecac01feb2c52a79982dff
authored
2012-10-25 12:42:11 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
temporary fix for strange behavior of fs.isWritable on Windows
1 parent
c816b83e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
modules/tester.js
modules/tester.js
View file @
c55dc1b
...
...
@@ -943,9 +943,10 @@ Tester.prototype.runTest = function runTest(testFile) {
*/
Tester
.
prototype
.
saveResults
=
function
saveResults
(
filepath
)
{
"use strict"
;
if
(
!
fs
.
isWritable
(
filepath
))
{
throw
new
CasperError
(
f
(
'Path %s is not writable.'
,
filepath
));
}
// FIXME: looks like phantomjs has a pb with fs.isWritable https://groups.google.com/forum/#!topic/casperjs/hcUdwgGZOrU
// if (!fs.isWritable(filepath)) {
// throw new CasperError(f('Path %s is not writable.', filepath));
// }
try
{
fs
.
write
(
filepath
,
this
.
exporter
.
getXML
(),
'w'
);
this
.
casper
.
echo
(
f
(
'Result log stored in %s'
,
filepath
),
'INFO'
,
80
);
...
...
Please
register
or
sign in
to post a comment