execjosh
c22dfdc576
Implement charset param for fs.{open,read,write}
...
http://code.google.com/p/phantomjs/issues/detail?id=367
2012-02-03 00:44:14 +09:00
execjosh
21906c5536
Allow passing option object to fs.{open,read,write}
...
http://code.google.com/p/phantomjs/issues/detail?id=367
2012-02-03 00:34:45 +09:00
Ivan De Marino
88991207c2
Added "copyTree(source, destination)" to the set of File API.
...
* This is the last API
* I added tests accordingly
* Test could be improved with a proper recursive comparison
* Or, if we introduce "phantom.exec", we could just run a "diff -rq" :)
2011-09-04 23:42:54 +01:00
Ivan De Marino
f381f61c64
Added "copy(source, dest)" to the set of FS API.
...
* Also, added test case accordingly.
2011-09-01 00:01:40 +01:00
Ivan De Marino
cffd688efd
Improving compliancy of "remove*" Filesystem API.
2011-08-31 23:32:56 +01:00
Ivan De Marino
d8d88a3894
Added "Copyright..." line to files on which I worked on.
...
I tried to also add/remove based on the git history.
2011-08-31 16:29:40 +01:00
Ivan De Marino
2c4ac33942
Filesystem API: completed the "Tests" API group from CommonJS/Filesystem definition.
...
* Tests provided in "fs-spec-04.js"
* I also slightly enriched the "jasmine-console.js" reporter to get a bit more info
2011-08-08 23:42:11 +01:00
Ivan De Marino
a47ee85d09
Filesystem API: completed the "Paths" API group from CommonJS/Filesystem definition.
...
* Tests provided in "fs-spec-03.js"
2011-08-02 00:47:43 +01:00
Ivan De Marino
512ff9658e
Filesystem API: added the "Attributes" API group from CommonJS/Filesystem definition
...
* Tests for this new API are also provided
* The 'fs.size()' method is implemented with a shim in 'bootstrap.js' to cover the exception throwing behaviour
2011-07-22 00:29:25 +01:00
Ivan De Marino
3807b9dc4d
Now, if "fs.open" fails, it throws an exception.
...
* This is implemented with a javascript-shim
2011-06-28 21:35:27 +01:00
Ivan De Marino
aad029e53f
Sorting out some nitpicks.
2011-06-28 13:24:24 +01:00
Ivan De Marino
f4aa689ec7
A bit more compliancy with the CommonJS Filesystem/A draft specs.
...
* Renamed some methods to be more compliant with the specs
* Added some Directory/Tree specific ops
* Support for the open mode '+' (that is equivalent to 'a')
* See draft at: http://wiki.commonjs.org/wiki/Filesystem/A
2011-06-27 23:14:41 +01:00
Ivan De Marino
6b04ee23c1
Introducing File I/O API in PhantomJS.
...
* This is the squash of 30 commits, so it's meaty
* Inspired by HammerJS (see https://github.com/senchalabs/hammerjs )
* Not yet 100% complete
* Final aim is to provide a CommonJS/Filesystem compliant API (see http://wiki.commonjs.org/wiki/Filesystem )
2011-06-27 23:14:05 +01:00