aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix unit testRobin Appelman2014-06-061-1/+1
|
* Fix unit testsRobin Appelman2014-06-061-1/+1
|
* Fix testsJoas Schilling2014-06-031-8/+8
|
* display "<1 kB" for really small filesMorris Jobke2014-06-021-1/+1
| | | | | * added parameters for humanFileSize to trigger that behaviour * add unit tests for that
* Merge pull request #8663 from owncloud/files-dndissueLukas Reschke2014-05-301-0/+137
|\ | | | | Fixed drag and drop from external files, added tests
| * Fix dropping files below the tableVincent Petry2014-05-221-1/+7
| |
| * Fixed drag and drop from external files, added testsVincent Petry2014-05-211-0/+131
| | | | | | | | | | | | | | | | - Fixed detection whether the drop zone is inside the currently visible table - Now dragging outside the table does nothing instead of uploading, because the user might drop on the sidebar - Added unit tests for the drop handler
* | Sharing overview fixes and unit testsVincent Petry2014-05-302-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | - Fixed renaming and fileActionsReady event - Added unit tests for shares list - Fixed public page with defer - Fixed file actions in sharing overview - Fixed sharing counterpart list (10 entries max) - Fixed file path attribute to be used in download action - Fix sharing list headers - OC.Share icons now operate on fileList instance - Fix OC.Share.updateIcon when more than one list in DOM
* | Distinguish legacy file actions from regular file actionsVincent Petry2014-05-303-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Legacy file actions are registered by legacy apps through window.FileActions.register(). These actions can only be used by the main file list ("all files") because legacy apps can only deal with a single list / container. New file actions of compatible apps must be registered through OCA.Files.fileActions. These will be used for other lists like the sharing overview. Fixed versions and sharing actions to use OCA.Files.fileActions, which makes them available in the sharing overview list.
* | Added "dir" in file actions handler context and fixed versionsVincent Petry2014-05-302-0/+34
| | | | | | | | | | | | | | | | | | Added "dir" in file actions handler context so that handlers can know what the path of the file was without having to look it up from the file list. Fixed versions app to use the context.dir instead of the old $('#dir') element. This makes the versions popup work in the sharing overview.
* | Add unit tests for fileActionsReadyVincent Petry2014-05-301-0/+14
| |
* | Added unit test for file action context argumentVincent Petry2014-05-301-4/+32
|/
* Merge pull request #8612 from owncloud/share-updateshareiconsafterrenameBjörn Schießle2014-05-211-13/+52
|\ | | | | [master] Fixed issues with renaming
| * Fixed issues with renamingVincent Petry2014-05-161-13/+52
| | | | | | | | | | | | | | | | - summary is now untouched on rename instead of bogus incrementation - fixes "Share" status icon by only triggring "fileActionsReady" once - row is now reinserted even when rename is cancelled, this removes the hacky/buggy code that tried to rename the element back - added unit tests to cover the fixed cases
* | Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-1/+1
| | | | | | | | * test case added to avoid adding them later
* | Merge pull request #8435 from owncloud/fix-8322-masterThomas Müller2014-05-191-1/+11
|\ \ | |/ |/| Expose permission via WebDAV
| * fix broken unit testThomas Müller2014-05-021-1/+11
| |
* | Fixed many issues, clean upVincent Petry2014-05-153-60/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* | Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-156-322/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* | Merge pull request #8041 from owncloud/files-sortcolumnsVincent Petry2014-05-122-7/+254
|\ \ | |/ |/| File list sorting by clicking on column headers
| * Clear selection on reload (when changing sort)Vincent Petry2014-04-291-0/+6
| |
| * Added unit test in files app for sort function in helper classVincent Petry2014-04-281-0/+98
| | | | | | | | | | Added unit test for the Helper class in the files app that tests the different sort orders.
| * Add sorting to files list, trashbin and public filesVincent Petry2014-04-281-7/+150
| |
* | Show spinner for all files when deleting allVincent Petry2014-04-291-0/+14
|/
* Fixed drag and drop into folder and onto breadcrumbVincent Petry2014-04-281-10/+100
| | | | | Fixed drag and drop code to use FileList.getSelectedFiles() instead of the visible DOM elements.
* Fixed selection summary calculation issueVincent Petry2014-04-281-0/+26
|
* Fixed selection to be based on FileList.filesVincent Petry2014-04-281-35/+152
| | | | | | | | | | The file selection is now based on the internal model array FileList.files instead of the visible checkboxes. This makes it possible to virtually select files that haven't been rendered yet (select all, then deselect a visible one) Added more unit tests for selection (with shift and ctrl as well)
* Make sure there are always enough elements visible on the pageVincent Petry2014-04-281-0/+8
|
* Fixed insertion of filesVincent Petry2014-04-282-11/+121
| | | | | | | | | Removed "insert" flag, inserting is by default for FileList.add(). Added "animate" flag to FileList.add(). Added logic to correctly detect when to insert/append elements whenever the insertion point is visible or not. Fixed "render next page" logic to work correctly when many pages of files have been added.
* Fixed file sorting to work with scrollingVincent Petry2014-04-281-16/+68
| | | | | | | | | The FileList.files model is now updated with file operations. Adding files to the list will add to the model first, then to the DOM. If the insertion point isn't visible yet, the file won't be added to the DOM until the user scrolls down. Updated unit tests to include checking for the correct insertion point.
* Fix file selection for infinite scrollingVincent Petry2014-04-282-7/+238
| | | | | | | - moved file selection code to FileList - fix selection summary when all files are selected - nextPage now auto-selects files if "select all" checkbox is checked - fixed trashbin to use the same selection logic as FileList
* Fix file summary to use the whole file listVincent Petry2014-04-282-24/+111
| | | | | | - moved the summary code into a new class FileSummary - FileSummary is calculated only once, then updated with add/remove - added new OC.Util namespace for JS utility functions
* we no longer need to handle the Shared folder different from any other folderBjoern Schiessle2014-04-232-117/+0
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-024-53/+1081
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
* Fixed broken delete file actionVincent Petry2014-04-011-7/+19
|
* Added unit tests for "add()" method for file uploadVincent Petry2014-03-061-0/+127
| | | | | | - Added OC.Upload.init() to make the code testable - Added unit tests for the add() method of the uploader with some error cases
* don't allow to create a file or folder named 'Shared' in the root folder, ↵Bjoern Schiessle2014-03-051-0/+35
| | | | also exclude all combinations of lower and upper case letters
* Make unit tests expect the svg iconsRobin Appelman2014-02-201-2/+6
|
* Do not send file list for select all on Download/deleteVincent Petry2014-02-132-4/+11
| | | | | | | | - When all files are selected, do not send the whole file list - Download will trigger download for the parent folder, also works with root - Delete will send "allfiles" to the server that will find the file list or the passed directory by itself
* Merge pull request #7011 from owncloud/jshintThomas Müller2014-02-043-2/+11
|\ | | | | Added .jshintrc
| * Fixed file name validation unit test + added newlineVincent Petry2014-01-301-0/+1
| | | | | | | | | | - fixed file name validation unit test - added "\n" as forbidden character in isFileNameValid()
| * Added .jshintrcVincent Petry2014-01-303-2/+10
| | | | | | | | | | | | - Also fixes a few JSHint warnings in files app - Added "global" comment on top of files app to suppress warning and also inform devs about what globals are use
* | Updated unit tests for rename actionVincent Petry2014-01-301-1/+12
|/ | | | | | - rename action is now checked inside of ".nametext" element - added test to ensure that display() correctly resets all actions including the rename one
* Added error message for when target folder was removedVincent Petry2014-01-291-2/+47
| | | | | | | | | | Whent trying to upload/rename/create files in a folder that was removed or rename, the correct error message is now shown. In the case of upload of multiple files, the upload is cancelled. This situation can happen if the target folder was renamed or removed from another browser window or client.
* Fixed download URL in public pageVincent Petry2014-01-242-0/+67
| | | | | | | - Refactored download URL building to make it overridable - Added download URL override in public page - Added JS unit tests for download URL - Added OC.redirect() method to facilitate unit testing
* Fixed filelist unit tests hidden paramsVincent Petry2014-01-241-5/+8
| | | | Also added dummy table
* Added Javascript unit testsVincent Petry2014-01-162-0/+135
| | | | | | | - added karma utility to run jasmine unit tests - added Sinon library (for stubs/mocks/fakeserver) - added a few unit tests for core and files - added autotest-js.sh script
* Fixed unit tests for ajax renameVincent Petry2013-11-271-19/+44
|
* Quota storage wrapper is now used for all users in sharing modeVincent Petry2013-11-211-0/+15
| | | | | | | | | When accessing a shared folder, the folder's owner appears as mountpoint but wasn't wrapped by a quota storage wrapper. This fix makes sure that all home storages are wrapped by a quota storage wrapper, if applicable, to make sure quotas are respected when uploading into shared folders.
* avoid usage of brand name 'ownCloud'Thomas Müller2013-10-281-1/+1
|