David Humphrey (:humph) david.humphrey@senecacollege.ca
064e986d26
sh.ls() fails when stack sized is reached for deep recursive listings: RangeError: Maximum call stack size exceeded
2014-07-21 13:17:16 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
2992f7417b
Failing test for issue #239
2014-07-16 15:23:11 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
4d10ba29a9
Use global vs. window for browserify resolution of global object, fixes shared watch events in Intercom
2014-07-15 11:36:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
87e291da64
Fix issue #235 - Allow recursive watches on root directory
2014-07-14 15:51:40 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
fdfd643d43
Add link to issue
2014-07-02 15:17:22 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
a38a32d5fb
Make browser-request happy and provide a global shim for XHR in issue225 test
2014-07-02 15:17:22 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
5c9ba07706
Test for Filer as AMD module use in require.js with Buffer, regression issue 225
2014-07-02 15:17:22 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
98cd3e6da7
Fix #228 : Uncaught [Filer Error] Your browser doesn't support IndexedDB or WebSQL.
2014-06-23 13:09:02 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
939d015e6d
All tests passing, replaced zlib.js with jszip, upstream fixes to browser-request + jszip for Buffers
2014-06-06 21:29:09 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
fa65a34905
Get Buffer use fixed, expose Buffer via Filer.Buffer, most tests passing.
2014-06-06 11:14:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
1914f7a52b
WIP - moving to Buffer internally from Uint8Array, not passing all tests yet.
2014-06-04 15:52:08 -04:00
Kieran Sedgwick
bb23e902d2
Closes #204 - Move network.js
...
The network module (network.js) logically fits better in /shell since it's the only part of filer that uses it.
2014-05-29 13:00:20 -04:00
Kieran Sedgwick
6353732403
Removed require-config.js
2014-05-27 14:29:11 -04:00
Kieran Sedgwick
ad64ac1b75
Moah fixes
2014-05-26 17:41:17 -04:00
Kieran Sedgwick
823232fc67
Review fixes
2014-05-26 17:35:41 -04:00
Kieran Sedgwick
a4c0874668
Browserify test suite
...
Our tests run in the browser and on node! Switching to browserify made this necessary.
2014-05-26 16:51:42 -04:00
Kieran Sedgwick
2d245a0b26
Removed unnecessary files
2014-05-26 16:51:42 -04:00
Kieran Sedgwick
4efa4a91f3
Review fixes from PR #195
2014-05-26 12:31:34 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
930e5ce2e3
Fix some failing tests
2014-05-23 17:01:57 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
4ab41c4aea
Get tests to run
2014-05-23 16:53:50 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
38627f95d6
Rework tests for node
2014-05-23 14:54:59 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
d9ed65602a
Remove adapters (src, tests, docs), fix providers for node
2014-05-23 14:36:23 -04:00
Kieran Sedgwick
2d5b01719a
Make requirejs crash loudly during tests
...
If requirejs hit a source file it didn't like, it would crash. However, preloaded tests would continue and getting a passing grade on travis-ci (exit code 0).
2014-05-22 23:26:19 -04:00
Kieran Sedgwick
0bbaf5ff93
Added and fixed unit tests
...
Aside from testing our new module (network.js), we also had to add logic that would test Filer appropriately in both the node and browser environments.
2014-05-22 23:26:19 -04:00
Kieran Sedgwick
3ef2a4e07d
Split the distribution of Filer into two files
...
The AMD-module system Filer uses can't handle require() calls that reference a node module. By creating two distributions we allow the node version to use a full implementation of RequireJS, which gracefully falls back to Node's require() when RequireJS can't find the module in its registered paths.
2014-05-22 23:04:08 -04:00
Kieran Sedgwick
9f33d8503e
Swapped out XMLHttpRequest for a custom module
...
We made a module to encapsulate the logic that chooses the nodejs or browser dependency that actually downloads a file when the module is used.
2014-05-22 23:04:08 -04:00
David Humphrey
81b4d26b90
Finish test suite changes for node.js
2014-05-22 23:04:08 -04:00
David Humphrey
9426a700b5
Generate separate filer for testing in node so we don't overwrite dist/filer.js
2014-05-22 23:04:08 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
89c44f2f72
Fix time-based tests to not fail in node, since operations on Memory run faster
2014-05-22 23:04:08 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
e041c2d904
Tests running now
2014-05-22 23:04:08 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
c18660a2ed
Initial work on getting tests to run, some working
2014-05-22 23:04:07 -04:00
David Humphrey
e37ba7142c
Fix review nit, add test
2014-05-22 15:09:33 -04:00
Alan K
247ebd113a
Merge pull request #187 from yoavgurevich/issue62v2
...
Fixes #62
2014-05-21 16:17:19 -04:00
gideonthomas
aff6570ad6
Added mknod command to create a file or directory node
2014-05-21 11:25:23 -04:00
yoavgurevich
067f9beb88
Final revisions on removal of arbitrary logic and indentation issues
2014-05-16 17:17:50 -04:00
yoavgurevich
4d24ab2c36
Fixed logic, format, and dependencies according to line note comments from last pull request. Tested on apache localhost server.
2014-05-16 11:43:54 -04:00
yoavgurevich
6b2a023dea
Corrected conflicting syntax and added testing clause for file descriptor argument value
2014-05-14 16:02:46 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
b04fc6dbae
Fix tests so they pass in PhantomJS (hack, we just skip for now)
2014-05-14 15:09:12 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
411d6b2a9c
Docs and update arg names to match docs
2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
af4a004435
All zip/unzip tests passing
2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
35b2fe46c6
Complex trees can be unzipped
2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
16c64d1ca2
Switched to zlib.js, all tests passing
2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
c9cb4b4bdb
Work thus far, still not right
2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
1cbede711a
Add test to confirm that fs.appendFile works when file is missing.
2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
fe4b1e5c0e
Adding sh.zip() but still failing a test
2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
3411ba2dd3
First working end-to-end unzip test passing
2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
1b12f44a02
Allow query string and hashes in wget filenames and add tests.
2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
9725f0a412
Improve automatic filename extraction for wget
2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
60a9dc2470
Beef up XHR code in sh.wget(), still failing 2 in PhantomJS due to not having web server
2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
2aa46493fa
Add sh.wget() for downloading files into the fs, with tests and docs
2014-05-14 13:24:53 -04:00
Petr Bouianov
febba4c8ba
Tests that expect errors check error codes. Fixes issue78
2014-04-17 11:53:55 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
be9e0b50a8
Generate errors instead of hard-coding, with tests
2014-03-16 11:36:15 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
fe7ec79f83
Refactor errors code, fix to better match node
2014-03-16 11:36:15 -04:00
Petr Bouianov
6faabdb937
Added shell.mkdirp. Fixes issue #126 .
2014-03-13 23:03:29 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
4a0ffb5f5a
Fix EventEmitter to match that expected by Intercom
2014-03-12 16:49:20 -04:00
Alan K
0cfb29eaec
Merge pull request #140 from humphd/issue132
...
Support fs.watch(), FSWatcher. Fixes #132
2014-03-08 16:04:15 -05:00
kwkofler
4ff7c7d7cb
Fixed README issues, and fixed misuse of expect() syntax.
2014-03-08 13:53:53 -05:00
kwkofler
880f70d3de
Merge remote-tracking branch 'upstream/develop' into issue#112
...
Conflicts:
src/fs.js
tests/test-manifest.js
2014-03-07 18:47:32 -05:00
kwkofler
526f2d0934
Renamed Stats to stats
2014-03-07 18:39:38 -05:00
kwkofler
7c14af9668
Fixed Stats prototypes, created full Mocha test suite
2014-03-07 18:10:02 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
eff4d9b5fc
Deal with failing tests for rename, and do a better cleanup job in watcher.close()
2014-03-07 13:46:54 -05:00
kwkofler
0fb099d6c8
Renamed test suite, started rewriting for mocha.
2014-03-07 13:06:11 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
96836f355c
Most things passing for change events now, ported node.js watch tests
2014-03-07 11:54:14 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
a365144e97
First passing tests for fs.watch(), use EventEmitter2 via bower
2014-03-06 22:27:10 -05:00
Alan Kligman
bb9c34e5b3
Revert "Merge pull request #113 from kwkofler/issue#112"
...
This reverts commit bfba8c3546
, reversing
changes made to f079eaa7dd
.
2014-03-06 11:35:53 -05:00
Alan K
bfba8c3546
Merge pull request #113 from kwkofler/issue#112
...
Resolves issue #112 , though isBlockDevice(), isCharacterDevice(), isFIFO...
2014-03-06 09:52:40 -05:00
Alan K
f079eaa7dd
Merge pull request #134 from pbouianov/issue125
...
Updated error object to match Node.js. Solves issue #125 .
2014-03-05 22:39:02 -05:00
Alan K
567145052c
Merge pull request #138 from humphd/test-timeouts
...
Increase the test timeout threshold from 2s to 5s
2014-03-05 22:24:27 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
31ef56ff8e
Increase the test timeout threshold from 2s to 5s (for longer db operations), with a slow test warning of 250ms
2014-03-05 22:02:05 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
72e527dfab
Add tests for time mount flag suppression (NOMTIME, NOCTIME)
2014-03-05 21:41:45 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
f580f40016
Tests for ctime, mtime, atime updates
2014-03-05 19:53:21 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
8c743bb95a
Fix remaining test failures
2014-03-05 16:27:12 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
61111da85d
Finish atime, ctime, mtime updates for fs operations, fix tests
2014-03-05 15:57:28 -05:00
pbouianov
c5ed7d4a55
Updated tests already checking error name
2014-03-05 14:28:31 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
f10b86b644
Change fs.utime test to remove constant times, prefering calculated duration. Fixes #103
2014-03-04 15:30:46 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
23a9861e82
Deal with provider.open edge case in new provider-agnostic tests. Fixes issue #127 .
2014-03-03 19:11:31 -05:00
kwkofler
866d8c1876
Issue #112 - Added mode reporting functions to the Stats object prototype, and appropriate tests
2014-03-03 18:54:01 -05:00
Alan Kligman
7d6bd98a31
Merge branch 'develop' of github.com:js-platform/filer into develop
...
Updated null-bytes test to have absolute paths
Conflicts:
dist/filer.js
dist/filer.min.js
2014-02-21 12:51:59 -05:00
pbouianov
0c30d6dd18
Added fs.exists support. Fixes Issue91
2014-02-21 06:56:14 -05:00
Alan K
b6b4ac8fec
Merge pull request #120 from humphd/issue119
...
Default provider for tests should be indexeddb. Fixes #119
2014-02-19 18:22:43 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
715f56b478
Default provider for tests should be indexeddb. Fixes #119
2014-02-19 17:47:14 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
a7a1f4b82e
Change sh.exec to take a list vs. object for passed args
2014-02-19 17:36:26 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
eadd4ec03c
Review fixes
2014-02-19 17:29:11 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
21f5d15f51
Add support for shell.env, PWD, TMP, and tempDir, with tests
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
83c55308dc
Add shell.rm() with tests
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
e4767019cc
Add shell.ls() with tests
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
2829079bd3
Add Shell.cat() with tests
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
ef09526740
Add cd test for symlink'ed dir
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
d7cce709f9
Fix shell.cd and add tests
2014-02-19 15:33:37 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
263b9cd9b0
Add shell.exec with test
2014-02-19 15:33:36 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
e43b1ba551
Working touch command with tests
2014-02-19 15:33:36 -05:00
Alan Kligman
3d57be4858
Fixes #116 .
2014-02-19 12:53:05 -05:00
Alan Kligman
18958fc585
Updated indexeddb test messages to match websql
2014-02-18 21:49:56 -05:00
Alan Kligman
49cec5df60
Fix #105 . Regression test for #105 had an error so I fixed that also. Updated refactoring-test example.
2014-02-18 21:45:36 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
d2f743511e
Turn on jshint and mocha/phantomjs tests with TravisCI. Fixes #48 .
2014-02-17 11:28:40 -05:00
David Humphrey (:humph) david.humphrey@senecacollege.ca
4812861dcf
Refactor tests: switch to Mocha, make providers and filer source configurable. Fixes #59
...
Make provider configurable via URL. Convert fs.close test to use it. Still have timing issue with WebSQL.
Indent fix
Use bower to install mocha
Converting to mocha, Memory provider failing still in fs.close
Got mocha tests working with all providers
Converted more tests
Move more tests over to mocha
Move more tests over
Move more tests over
More tests moved over
More tests converted
More tests moved over
Move more tests over
Move last tests over
Convert more tests
Remove Jasmine and other unnecessary test files, rename tests/spec/regression to tests/bugs
Get tests running with grunt+mocha+phantomjs
Add docs on new tests
2014-02-14 15:44:57 -05:00
David Humphrey
ce39bca20c
Failing test for issue 106
2014-02-11 14:26:37 -05:00
David Humphrey
7e09a4dfe1
Failing test for issue 105
2014-02-06 22:38:39 -05:00
Alan K
4137c12420
Merge pull request #101 from pbouianov/issue88
...
added fs.appendFile support
2014-02-03 19:50:37 -08:00
pbouianov
6ec635e551
fixed, added appendFile tests and updated README
2014-01-30 14:12:32 -05:00